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@lists.freedesktop.org
          Reporter: mahmood.sagh...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to