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)
Version:
(earliest affected)
3.3.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2011-08-04 08:58 UTC by Jim Fuqua
Modified: 2023-03-07 04:18 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


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

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:

1.
2. a.
   b.
   c.
3.

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.

<html> 
<head> 
<style type="text/css"> 
  ol.c {list-style-type:upper-roman;}
  ol.d {list-style-type:lower-alpha;}
</style> 
</head> 
<body> 
<p>Example of ordered lists:</p> 
 
<ol class="c"> 
  <li>Coffee</li> 
  <li>Tea</li> 
  <li>Coca Cola</li> 
</ol> 
 
<ol class="d"> 
  <li>Coffee</li> 
  <li>Tea</li> 
  <li>Coca Cola</li> 
  <li>Dr. Pepper</li> 
</ol> 
</body> 
</html>
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 4.0.2.2 (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
5.0.2.2 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 6.1.0.1.0+ under Ubuntu 16.04.

Best regards. JBF
Comment 12 Jonatham E. Snow 2018-10-24 21:45:43 UTC
Somewhat better in 6.0.6.2. 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:

    I.Coffee
    II.Tea
    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: 7.1.2.0.0+ / 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
Ubuntu_18.04_x86-64
Calc: threaded

Best regards. JBF
Comment 15 QA Administrators 2023-03-07 04:18:17 UTC
Dear Jim Fuqua,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug