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

Regina Henschel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTABUG
             Status|NEW                         |RESOLVED

--- Comment #7 from Regina Henschel <[email protected]> ---
If you copy a hyperlink, then the content of the clipboard is nothing else as a
pure UTF8 text. If you paste a text over a marked hyperlink, the hyperlink is
replaced by the text. I consider this not a bug but the expected behavior.

If you write a hyperlink original in Writer, it is displayed with "blue +
underline" but has originally no character style assigned. If you paste the
clipboard over the hyperlink, the pasted text replaces the hyperlink and is
rendered as determined by a surrounding character style or by the default
character settings in the paragraph style.

If you use a docx-document, then the hyperlink gets the character style
"Internet Hyperlink". The settings in that style contain a "blue + underline",
so that the text looks like a hyperlinks. When you replace the hyperlink by the
clipboard, that does not change the character style as the clipboard has only
"unformatted text".

In ODF, the <text:a> element (that is the hyperlink) has itself a
text:style-name attribute to specify how the hyperlink is rendered. The
corresponding <w:hyperlink> element in OOXML has no such attribute. Therefore
LibreOffice is forced to write the "blue plus underline" styling as attribute
of the text when it exports to docx. And then when reloading the docx-file the
text has a character style assigned, which is then still used when you replace
the hyperlink by a simple text.

Danat: You should really consider using ODF, the native format of LibreOffice,
instead of converting back and forth to OOXML, which always causes problems and
losses.

To make the pasted text to a hyperlink, type a space after pasting the
clipboard to trigger the AutoCorrect option "URL Recognition", which is on by
default. After the conversion to a hyperlink you can remove the space.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to