Bug 121049 - Failure to retain superscript when pasting from HTML, if sup elements have a class
Summary: Failure to retain superscript when pasting from HTML, if sup elements have a ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: Paste
  Show dependency treegraph
Reported: 2018-10-30 05:40 UTC by Nicholas van Oudtshoorn
Modified: 2019-01-23 19:49 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas van Oudtshoorn 2018-10-30 05:40:57 UTC
When copying HTML from the web and pasting it into writer, superscripts aren't retained if the HTML superscript has a class associated with it.


Steps to Reproduce:
1.Visit https://www.biblegateway.com/passage/?search=John+1&version=NLT
2.Copy some of the text (verse numbers are superscript!) and paste it into Writer. Notice that the verse numbers are no longer superscript.
3.Using your web browser's developer tools, remove the class from some of the <sup> tags. Try the copy and paste again, and the verse numbers remain superscripted.

Actual Results:
<sup> tags with classes don't retain superscript display in Writer.

Expected Results:
Superscript text should stay superscripted when pasted

Reproducible: Always

User Profile Reset: No

Additional Info:
Build ID: 96cf06c947838120e37f3fbb4d0543dd882cb20c
CPU threads: 4; OS: Linux 4.18; UI render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-10-25_22:45:16
Locale: en-AU (en_AU.UTF-8); Calc: threaded
Comment 1 Nicholas van Oudtshoorn 2018-10-30 05:44:29 UTC
Note that this seems to be a very old bug. I know that I've been working around it for ages. Web search shows people talking about it since 2014, and simply saying "work around it" - https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=69389
Comment 2 Durgapriyanka 2018-11-29 16:55:37 UTC
I can confirm that the bug is present in

Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group