Issue 119116 - hyperlink fails when target contains newline
Summary: hyperlink fails when target contains newline
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.3
Hardware: PC Windows XP
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-23 17:28 UTC by TAB
Modified: 2013-09-11 11:48 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
contains hyperlinks (13.33 KB, application/octet-stream)
2012-03-23 17:28 UTC, TAB
no flags Details
BugTest.odt (8.61 KB, application/vnd.oasis.opendocument.text)
2012-10-01 04:56 UTC, Daniel Spiegelman
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description TAB 2012-03-23 17:28:11 UTC
Created attachment 77357 [details]
contains hyperlinks

In HypLong.odt, ctrl-click RefB, go to TitleB; OK.
Now, ctrl-click RefC, go nowhere; apparently, because the target TitleC contains a newline character.
RefD works, even though TitleD spreads over 2 lines.
Comment 1 Caleb Morris 2012-10-01 01:11:56 UTC
Confirmed the same bug for OOo3.4.1 build 9593 on Windows Xp 
For clarification of the bug:
    A hyperlink that points to an area inside of the same document will normally jump to that location.
    However, if this location (described in the target) contains a newline (the actual location, but not the target) (not wrapped text as shown in RefD) the link will go to itself rather than the target location. This even occurs if you choose the location from the hyperlink "Target in Document" wizard. It will allow you to choose the heading, but won't be able to jump to the location.
Comment 2 Daniel Spiegelman 2012-10-01 04:55:34 UTC
Unable to confirm bug using OO 3.4.1b9593 on Windows 8.

   I downloaded the attachment and I was able to reproduce the bug using the original file. 
   I then created a new file "BugTest.odt" where I created three headings and three links. 
   Then I copied the newline character from "HypLong.odt" and pasted into my heading 2.

DESCRIPTION OF LINKS - Heading 1: Normal, Heading 2: Newline copied from original, Heading 3: Text that wrapped to the next line.

   When I ctrl-clicked all three of my links worked.
Comment 3 Daniel Spiegelman 2012-10-01 04:56:27 UTC
Created attachment 79700 [details]
BugTest.odt
Comment 4 Diego Valle Rosado 2013-05-01 02:11:56 UTC
I reproduced this issue on: Win7 using AOO 3.4.1 and Ubuntu 12.04 with AOO 4.0, the problem does not occur.
Comment 5 Edwin Sharp 2013-09-11 11:48:37 UTC
As given in description.

Rev. 1520602 Win 7