Bug 39835 - FORMATTING: formatting of numbered list lost when copy-paste from web-browser
Summary: FORMATTING: formatting of numbered list lost when copy-paste from web-browser
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.3.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: Paste Bullet-Number-Outline-Lists
  Show dependency treegraph
Reported: 2011-08-04 08:58 UTC by Jim Fuqua
Modified: 2021-03-06 13:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

test case of this bug (384 bytes, text/html)
2012-01-30 04:48 UTC, sasha.libreoffice

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Fuqua 2011-08-04 08:58:54 UTC
When pasting from a web page that has an outline or list within a list such as:

2. a.

using the following styling:
ol.c {list-style-type:upper-roman;}
ol.d {list-style-type:lower-alpha;}

the a, b, and c entries show up as 1, 2, and 3. The problem probably hits any use of the CSS list-style-type.

Below is the html for a test page.  Display the page in a browser and then copy and paste the results in a LibreOffice Writer page.

To paste correctly the CSS properties of the ordered list should be evaluated.

<style type="text/css"> 
  ol.c {list-style-type:upper-roman;}
  ol.d {list-style-type:lower-alpha;}
<p>Example of ordered lists:</p> 
<ol class="c"> 
  <li>Coca Cola</li> 
<ol class="d"> 
  <li>Coca Cola</li> 
  <li>Dr. Pepper</li> 
Comment 1 Björn Michaelsen 2011-12-23 12:23:52 UTC Comment hidden (obsolete)
Comment 2 sasha.libreoffice 2012-01-30 04:48:32 UTC
Created attachment 56321 [details]
test case of this bug
Comment 3 sasha.libreoffice 2012-01-30 04:50:48 UTC
reproduced in LibO 3.6.0 master on Fedora  64 bit
Comment 4 A (Andy) 2013-05-02 20:05:01 UTC
reproducible with LO (Win7 Home, 64bit)
Comment 5 QA Administrators 2015-03-04 02:20:23 UTC Comment hidden (obsolete)
Comment 6 Jean-Baptiste Faure 2015-03-07 10:15:01 UTC Comment hidden (obsolete)
Comment 7 jddcef 2015-10-12 20:31:39 UTC Windows 8.1 x64 - still a problem.
Comment 8 QA Administrators 2016-11-08 11:15:12 UTC Comment hidden (obsolete)
Comment 9 Jean-Baptiste Faure 2016-11-11 08:16:36 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2018-07-06 02:46:02 UTC Comment hidden (obsolete)
Comment 11 Jean-Baptiste Faure 2018-07-17 09:54:58 UTC
Still reproducible in version under Ubuntu 16.04.

Best regards. JBF
Comment 12 Jonatham E. Snow 2018-10-24 21:45:43 UTC
Somewhat better in Now the text case file ordered list is recognized if you use cut and paste, but the space between the separator '.' and the list content is lost, like so:

    III.Coca Cola

When pasted. It must still be there somehow, because when I paste it from LO to here it appears:

    I. Coffee
    II. Tea
    III. Coca Cola
Comment 13 QA Administrators 2021-02-25 04:09:07 UTC Comment hidden (obsolete)
Comment 14 Jean-Baptiste Faure 2021-03-06 13:01:28 UTC
Nothing changed with LO 7.1 :

Steps to reproduce:
1/ open https://bugs.documentfoundation.org/attachment.cgi?id=56321 in a new tab in tour preferred web browser
2/ ctrl+A then ctrl+C to select and copy all things in this tab
3/ open a new empty text document in LibreOffice Writer
4/ ctrl+V to paste

I get what follows :

Example of ordered lists:
    1. Coffee 
    2. Tea 
    3. Coca Cola 
    1. Coffee 
    2. Tea 
    3. Coca Cola 
    4. Dr. Pepper 

Version: / LibreOffice Community
Build ID: 36b1c3a5a886c0d30a8347422b14d2eb3b98a32e
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

Best regards. JBF