You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/09/22 16:48:49 UTC

[Issue 125731] "Target in Document" Hyperlink doesn't work when the target header has combination of number and period

https://bz.apache.org/ooo/show_bug.cgi?id=125731

Haoge Lin <hl...@my.fit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hlin2015@my.fit.edu

--- Comment #7 from Haoge Lin <hl...@my.fit.edu> ---
OS: Windows 10 Home
OO Version: 4.1.1

The writer separate his comments into two parts. The first part describes the
bug generally and the second part is the steps to replicate the bug.
I failed to expand “Headings” in “Target in document” menu at the first.
Because the writer didn’t include the step that set the title as heading style,
which makes it has nothing to expand. Then I looked back to the bug
description, finding he did mention the title was a header. But in this way to
structure his comments, it is really easy for the readers ignore the styling
detail to replicate the bug.
After I set the title as a header, I successfully replicated the bug following
the steps that the writer created.

Tests:
Test 1 – Replicated
1.Create header “1. Title 01” on the first line.
2.Press Enter for several times, jump to the next few lines.
3.Type “hyperlink” and link the word to “1. Title 01” using the same way the
writer did.
4.Click the hyperlink.
Result: Link Broken, jumped to the “hyperlink” text itself.

Test 2 – Unreplicated
1.Create header “1 Title 01” on the first line.
2.Press Enter for several times, jump to the next few lines.
3.Type “hyperlink” and link the word to “1 Title 01” using the same way the
writer did.
4.Click the hyperlink.
Result: Link works.

Test 3 – Unreplicated
1.Create header “1, Title 01” on the first line.
2.Press Enter for several times, jump to the next few lines.
3.Type “hyperlink” and link the word to “1, Title 01” using the same way the
writer did.
4.Click the hyperlink.
Result: Link works.

Test 4 – Replicated
1.Create header “1. Title 01” on the first line.
2.Press Enter for several times, jump to the next few lines.
3.Create header “2. Title 02”.
4.Press Enter for several times, jump to the next few lines.
5.Create header “3. Title 03”.
6.Press Enter for several times, jump to the next few lines.
7.Type “hyperlink” and link the word to “2. Title 02” using the same way the
writer did.
8.Click the hyperlink.
Result: Link Broken, jumped to the “hyperlink” text itself.

Test 5 – Unreplicated
1.Create header “a. Title 01” on the first line.
2.Press Enter for several times, jump to the next few lines.
3.Type “hyperlink” and link the word to “a. Title 01” using the same way the
writer did.
4.Click the hyperlink.
Result: Link works.

Text 6 – Unreplicated
1.Create header “一. Title 01” on the first line.(“一” is “one“ in Chinese)
2.Press Enter for several times, jump to the next few lines.
3.Type “hyperlink” and link the word to “一. Title 01” using the same way the
writer did.
4.Click the hyperlink.
Result: Link works.

Text 7 –Replicated
1.Create header “1. Title 01” on the first line.
2.Press Enter for several times, jump to the next few lines.
3.Click “Navigator” icon in the task bar
4.Expand “Heading”
5.Drag “1. Title 01” into somewhere in the editor.
6.Click the hyperlink.
Result: Link Broken, jumped to the “hyperlink” text itself.

Text 8 –Replicated
1.Create a table
2.Insert header “1. Title 01” in one cell of the table.
3.Press Enter for several times, jump to the next few lines.
4.Type “hyperlink” and link the word to “1. Title 01” using the same way the
writer did.
5.Click the hyperlink.
Result: Link Broken, jumped to the “hyperlink” text itself.

Text 9 –Unreplicated
1.Create header “1- Title 01” with heading 3 on the first line.
2.Press Enter for several times, jump to the next few lines.
3.Type “hyperlink” and link the word to “1- Title 01” using the same way the
writer did.
4.Click the hyperlink.
Result: Link works.

Observed Reason:
Unable to link a header which begins with a number proceeded by a "."

Explanation:
I tried a lot of ways to replicate the bug, including change the symbol
postfixes to the number, change the number with English letters, Chinese
character, change the way to create the hyperlink, change the position of the
header, etc. All those results meet the observed reason mentioned above.
For further test, I also tested the same problem in MS Word 2013. It turns out
that MS Word 2013 doesn’t have this bug.

-- 
You are receiving this mail because:
You are the assignee for the issue.