[Libreoffice-bugs] [Bug 123890] New: Error in inserting hyperlink when selected text starts with a slash

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 6 06:46:00 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=123890

            Bug ID: 123890
           Summary: Error in inserting hyperlink when selected text starts
                    with a slash
           Product: LibreOffice
           Version: 6.1.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mahmood.saghaei at gmail.com

Created attachment 149759
  --> https://bugs.documentfoundation.org/attachment.cgi?id=149759&action=edit
a sample writer file demonstration the problem

When a piece of text which starts with a forward slash is selected and then a
hyperlink defined in the insert hyperlink dialog, the result will be two links
with similar targets but with differing texts. The text for the first link is a
single slash and for the next link is the remainder of the text.
Steps to reproduce:
sample text = "/for" {without double quotes of course}
sample link = "http://www.example.com"

1 - create the link with the sample text and link and save the file
2 - rename the file to a zip file
3 - extract the zip file
4 - open the "content.xml" file in the extracted folder
5 - search for the sample link
6 - you will find two links one with a "/" and another with the "for":

first link
<text:a xlink:type="simple" xlink:href="http://www.example.com/"
text:style-name="Internet_20_link"
text:visited-style-name="Visited_20_Internet_20_Link">/</text:a>

second link
<text:a xlink:type="simple" xlink:href="http://www.example.com/"
text:style-name="Internet_20_link"
text:visited-style-name="Visited_20_Internet_20_Link"><text:span
text:style-name="T1">for</text:span></text:a></text:p></office:text></office:body></office:document-content>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190306/fa5d1098/attachment.html>


More information about the Libreoffice-bugs mailing list