[Libreoffice-bugs] [Bug 132773] Copying an underlined word from an html document loses underline property

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 6 15:26:17 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=132773

--- Comment #2 from Konstantin Kharlamov <hi-angel at yandex.ru> ---
I suspect LO uses text/html format of clipboard, so I managed to get contents
of that format for Google Docs (copying from works) and plain html (it doesn't)

Google docs: b'<meta charset="utf-8"><b style="font-weight:normal;"
id="docs-internal-guid-cfdd430f-7fff-9177-bba3-5001b84d8ed7"><span
style="font-size:10pt;font-family:Arial;color:#000000;background-color:#ffffff;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;-webkit-text-decoration-skip:none;text-decoration-skip-ink:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Test</span></b>'

Plain html: b'<span style="color: rgb(0, 0, 0); font-family: "Bitstream
Vera Serif"; font-size: medium; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration: underline; display: inline
!important; float: none;">Test</span>'

What is interesting is that both cases has `text-decoration:underline`. It's
just LO Writer ignores that in one of cases. So bug is probably different from
#132770

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200506/c4a2770f/attachment.htm>


More information about the Libreoffice-bugs mailing list