<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - hyperlink fragmentation if text link contains a quote"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111877">111877</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>hyperlink fragmentation if text link contains a quote
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jbfaure@libreoffice.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
If you attach an URL to a sentence containing a quote, then, after saving and
reloading the file, the hyperlink will be split in several hyperlinks with the
same target. This can be seen in the navigator.

Steps to Reproduce:
1. open a new text document
2. type something like "Azertyuiop d'qsdfgh jklm"; note that the first
character is uppercase
3. select the entered text, then ctrl+K and type an url, for example
<a href="http://www.libreoffice.org">http://www.libreoffice.org</a>
4. validate, save and close the file
5. reopen the file and open the navigator (F5) and look at hyperlinks

Actual Results:  
You see that your single hyperlink has been split in several hyperlinks with
the same target

Expected Results:
Only one hyperlink with the whole sentence


Reproducible: Always

User Profile Reset: No

Additional Info:
It seems that it is important that the first character of the sentence is
uppercase
The bug appears even if I disable auto-correction 


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101
Firefox/55.0</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>