Bug 167682 - DOCX IMPORT: A hyperlink not using Hyperlink character style, and having differently-formatted parts, gets the formatting of the last part
Summary: DOCX IMPORT: A hyperlink not using Hyperlink character style, and having diff...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bisected, filter:docx, regression
Depends on:
Blocks:
 
Reported: 2025-07-27 08:19 UTC by Mike Kaganski
Modified: 2025-11-21 12:25 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Hyperlinks with bold part (2.16 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-07-27 08:19 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2025-07-27 08:19:52 UTC
Created attachment 202017 [details]
Hyperlinks with bold part

Ref: https://ask.libreoffice.org/t/hyperlink-rendering-uses-the-style-of-the-last-run-for-all-runs/124829

Open the attached DOCX. It has a bookmark, and two hyperlinks to that bookmark. The first hyperlink has two parts, one normal and one bold; and it uses Hyperlink character style. The other hyperlink also has these parts, but it doesn't use the Hyperlink character style.

Since commit b56678ae967bb1e09b52930a0b1d59a5e68bb7be (tdf#142133: partially revert 576611895e5, 2024-03-09), the second hyperlink is shown all bold in Writer.
Comment 1 Sarah Lim 2025-11-21 09:47:55 UTC
this version shows the hyperlink style correctly
Version: 5.4.0.0.alpha1+
Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
CPU threads: 12; OS: Windows 6.19; UI render: GL; 
Locale: en-US (en_FI); Calc: group

bibisected with win32-6.0
Version: 6.0.6.0.0+
commit:eaa9cf6a3069fba3d82c046f0041bfb537d9e648
author: Vasily Melenchuk <Vasily.Melenchuk@cib.de>  Fri Aug 18 22:14:08 2017 +0300
Comment 2 Buovjaga 2025-11-21 12:25:50 UTC
(In reply to Sarah Lim from comment #1)
> bibisected with win32-6.0
> Version: 6.0.6.0.0+
> commit:eaa9cf6a3069fba3d82c046f0041bfb537d9e648
> author: Vasily Melenchuk <Vasily.Melenchuk@cib.de>  Fri Aug 18 22:14:08 2017
> +0300

That was the implementation: tdf#43017: Support for DOCX hyperlinks character properties