Bug 88846 - FORMATTING hyperlink character style transferred to a new line with enter
Summary: FORMATTING hyperlink character style transferred to a new line with enter
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink
  Show dependency treegraph
 
Reported: 2015-01-28 09:45 UTC by Milan Bouchet-Valat
Modified: 2023-08-02 12:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
ODT file to reproduce the problem (11.87 KB, application/vnd.oasis.opendocument.text)
2015-01-28 09:45 UTC, Milan Bouchet-Valat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Bouchet-Valat 2015-01-28 09:45:06 UTC
Created attachment 112853 [details]
ODT file to reproduce the problem

In the attached file, if you create a new line and type a few letters, you'll notice the formatting remains the one used for the hyperlink in the paragraph above. Resetting the formatting via the styles menu has no effect, nor changing the style.

Adding a new line or two, resetting the formatting, and removing the lines and retrying eventually works, but I've not really identified the sequence of actions required to get this result.


This has been observed with LO 4.2.8.2 and 4.3.5.2.0+ on both Linux and Mac OS X.
Comment 1 Buovjaga 2015-01-29 20:45:03 UTC
Reproduced.

"Minor" as we can do as a workaround: remove underline, set text color to automatic.

Win 7 Pro 64-bit Version: 4.5.0.0.alpha0+
Build ID: 784d069cc1d9f1d6e6a4e543a278376ab483d1eb
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-01-25_23:07:36
Comment 2 QA Administrators 2016-02-21 08:35:27 UTC Comment hidden (obsolete)
Comment 3 Milan Bouchet-Valat 2016-02-21 11:32:16 UTC Comment hidden (obsolete)
Comment 4 Zenaan Harkness 2016-08-30 00:44:13 UTC
Confirmed bug still present in 5.3.0alpha
Comment 5 QA Administrators 2018-08-22 02:35:13 UTC Comment hidden (obsolete)
Comment 6 Milan Bouchet-Valat 2018-08-29 11:22:24 UTC
Still present in 6.0.4.2.
Comment 7 Timur 2018-11-13 14:40:40 UTC
The behavior is the same since OO. And it's not specific to example file, but general behavior. 
Not sure if this is a bug at all. Because hyperlink is the character formatted "Internet Link". 
When you type enter to create a new line, that direct formatting is transferred. The only dilemma is why MSO doesn't transfer that "Internet Link" style to a new line.
Comment 8 Miklos Vajna 2018-11-14 09:42:08 UTC
I would say this is a bug, links typically don't contain newlines, so it makes sense to not transfer this formatting.
Comment 9 QA Administrators 2019-11-15 03:35:29 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2021-11-15 04:01:41 UTC Comment hidden (obsolete)
Comment 11 Stéphane Guillou (stragu) 2023-08-02 12:12:52 UTC
I'm not sure how the original document was created, but to reproduce it from scratch I used the following steps:

1. Open Writer
2. Write the following and press Enter: Here is a bug https://bugs.documentfoundation.org/show_bug.cgi?id=88846
3. Notice how autocorrect applied the formatting to the link, made it an active link
4. Place the cursor at the end of the link, press Enter, write some text: note that it doesn't use the link formatting -> this is OK
5. Select the link, apply the character style "Internet Link", then repeat step 4

Result: character style persists.

But I'm with Timur on this: a character style continues to be applied in text added directly behind it, and persists in a new paragraph.

Neither hyperlink autocorrect nor a hyperlink inserted with Ctrl + K will show "Internet Link" selected in Character Styles, so can't reproduce the issue with the usual link insertion methods.

To resolve the issue in the example file, one can set the link to "no character style".