Bug 108170 - Hyperlinks don't highlight 'Internet Link' entry in character styles list
Summary: Hyperlinks don't highlight 'Internet Link' entry in character styles list
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 141323 (view as bug list)
Depends on:
Blocks: Sidebar-Styles Hyperlink Writer-Styles-Character
  Show dependency treegraph
 
Reported: 2017-05-27 15:39 UTC by Yousuf Philips (jay) (retired)
Modified: 2024-04-24 16:47 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Output of the UNO Inspector (69.83 KB, image/png)
2021-10-07 13:53 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2017-05-27 15:39:42 UTC
Steps:
1) Open Writer
2) Insert a hyperlink
3) Place the cursor within the blue underlined hyperlink
4) Open the styles & formatting sidebar deck and click on the character styles button
5) Notice that 'Default Style' character style is selected rather than 'Internet Link'

Version: 5.5.0.0.alpha0+
Build ID: 6533c30f7f8b62671fef9e636c49b11127812ed1
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-05-26_02:35:54
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Jacques Guilleron 2017-05-27 16:17:14 UTC
Hi Yousuf,

I reproduce with:
LO 5.5.0.0.alpha0+ Build ID: 0e6297932252403883a6057feee488e4ee2bc360
CPU threads: 2; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2017-05-23_00:14:17
Locale: fr-FR (fr_FR); Calc: CL
and:
LO 3.5.3.2 Version ID : 235ab8a-3802056-4a8fed3-2d66ea8-e241b80
& Windows 7 Home
so probably inherited from OOo.
Comment 2 QA Administrators 2018-05-28 02:32:07 UTC Comment hidden (obsolete)
Comment 3 Jacques Guilleron 2018-05-28 09:10:49 UTC
Still reproduced with
LO 6.1.0.0.alpha1+
Build ID: 23c5125148a8110d88385b29570bf0b7d4400458
CPU threads: 2; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-05-12_00:15:25
Locale: fr-FR (fr_FR); Calc: CL
Comment 4 Timur 2018-11-13 14:32:48 UTC
Repro 6.2+ from scratch. 
For some reason, behaves correctly with attachment 112853 [details] from 88846.
Comment 5 QA Administrators 2019-11-14 03:43:45 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2020-11-13 16:31:27 UTC
Still repro.

Arch Linux 64-bit
Version: 7.1.0.0.alpha1+
Build ID: c54e1c22f30c23d00e2fe7521217569fcec59cc4
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 13 November 2020
Comment 7 Heiko Tietze 2021-04-06 15:54:17 UTC
*** Bug 141323 has been marked as a duplicate of this bug. ***
Comment 8 Rafael Lima 2021-10-07 13:53:15 UTC
Created attachment 175571 [details]
Output of the UNO Inspector

Still present in LO 7.2.1.2

Version: 7.2.1.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 16; OS: Linux 5.11; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.2.1-0ubuntu0.21.04.1~lo1
Calc: threaded

However, I wonder what actually happens internally in LO to apply the "Internet Link" and "Visited Internet Link" styles to links. It seems to be somehow hardcoded.

Using the new UNO Inspector (see attached image), notice that the hyperlink actually has no char style applied. That is why the "No Character Style" option is selected by default.

If I manually apply a character style to a link, LO sort of merges both styles... for example, applying the "Emphasis" style to a link makes the link italic and also applies the color and underline to the text. And now if you select the text, it shows that the "Emphasis" style is applied.

IMO there are 2 possible outcomes:
1) This is NAB and documentation should highlight this behavior
2) This is indeed a bug and the style name should appear in the CharStyleName property
Comment 9 QA Administrators 2023-10-08 03:16:07 UTC Comment hidden (obsolete)
Comment 10 V Stuart Foote 2024-04-24 16:47:08 UTC
Still reproduced.

But with Spotlight of Applied character styles enabled--shift Stylist deck from CS to PS and back--and the CS for the Hyperlinks is picked up.

But seems an issue with the Spotlight applying to canvas for the Hyperlinks. They are styled as visited on document canvas, but the applied spotlight notes them just as hyperlinks.

And a bit less clear with changes for bug 132253 to remove the Hyperlink formatting from the Character dialog.

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded