Bug 140472 - hyperlink does not reach target with line break
Summary: hyperlink does not reach target with line break
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink
  Show dependency treegraph
 
Reported: 2021-02-17 14:24 UTC by TorrAB
Modified: 2023-09-21 21:42 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
file with 2 hyperlinks (15.75 KB, application/vnd.oasis.opendocument.text)
2021-02-17 14:27 UTC, TorrAB
Details
file with long target (29.73 KB, application/vnd.oasis.opendocument.text)
2021-02-17 14:29 UTC, TorrAB
Details
file with short target (29.87 KB, application/vnd.oasis.opendocument.text)
2021-02-17 14:31 UTC, TorrAB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TorrAB 2021-02-17 14:24:42 UTC
Description:
In Link.odt, hyperlink ‘Q0’ is supposed to lead to the last heading ‘0: Diode commandée…’ of LinTarga.odt. It does not, even if file LinTarga.odt is already open when you ^click the hyperlink.
	Apparently, the problem is that the target of ‘Q0’ is too long, occupies 2 lines. Hyperlink ‘Qb’ in LinTargb.odt works.


Steps to Reproduce:
1.open Link.odt
2.^click Q0
3.

Actual Results:
LinTarga.odt opens, stays at BOF

Expected Results:
jump to last heading ‘0: Diode commandée…’


Reproducible: Always


User Profile Reset: No



Additional Info:
Apparently, the problem is that the target of ‘Q0’ is too long, occupies 2 lines. Hyperlink ‘Qb’ in LinTargb.odt works.
Comment 1 TorrAB 2021-02-17 14:27:44 UTC
Created attachment 169825 [details]
file with 2 hyperlinks
Comment 2 TorrAB 2021-02-17 14:29:29 UTC
Created attachment 169826 [details]
file with long target
Comment 3 TorrAB 2021-02-17 14:31:21 UTC
Created attachment 169827 [details]
file with short target
Comment 4 NISZ LibreOffice Team 2021-02-18 08:07:37 UTC
Confirming with:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2c8ffa41ec8e1ab2af95d5e033a445c17d29cf5a
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-GB
Calc: CL

Also happens in older versions: 7.0, 6.0, 5.0, 3.5

The problem is that the wrong link points to a paragraph that contains a manual line break, which is not represented in the target offered/created by the "Target in Document" dialog.
Comment 5 QA Administrators 2023-02-19 03:20:08 UTC Comment hidden (obsolete)
Comment 6 TorrAB 2023-02-27 20:26:42 UTC
The bug persists.
Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: CL threaded
Comment 7 Kira Tubo 2023-09-21 21:42:17 UTC
Able to reproduce in daily master build and 3.3, so updating earliest Version from 7.1.0.3 to "Inherited From OOo"

In case someone wants to reproduce the issue from scratch, the steps below clarifies the issue per Comment 4: 

1. Download attachment 169826 [details] and attachment 169827 [details]
2. Open Writer
3. Type in a word and select it
4. Insert > Hyperlink
5. Document > Path > Navigate to file LinTarga.odt from step 1 download
6. Document > Path > click target icon
7. Headings > expand headings until you can select "0: Diode commandee..."
8. Click Apply > Close 
9. Click OK
10. CTRL + click hyperlink and note results (document opens at top of page of LinTarga.odt)
11. Above steps can be repeated for LinTargb.odt and note results (document opens at "0: Diode commandee" of LinTargb.odt)


Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 486ae5db6987411d5e394de94b2b077099d03856
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded