<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 - EDITING Copy-pasting line with hyperlink from LOOL fails"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134599">134599</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>EDITING Copy-pasting line with hyperlink from LOOL fails
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>libreoffice@nisz.hu
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=162746" name="attach_162746" title="Example file from Writer">attachment 162746</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=162746&action=edit" title="Example file from Writer">[details]</a></span>
Example file from Writer

Attached file contains a shell command to download some file, for which a
hyperlink was inserted in LOOL like:

curl -o /usr/local/bin/make.exe
<a href="https://dev-www.libreoffice.org/bin/cygwin/make-4.2.1-msvc.exe">https://dev-www.libreoffice.org/bin/cygwin/make-4.2.1-msvc.exe</a>
When copy-pasting this paragraph the space before the hyperlink is lost or
converted:
in Firefox title bar it becomes:

curl -o
/usr/local/bin/make.exehttps://dev-www.libreoffice.org/bin/cygwin/make-4.2.1-msvc.exe

When pasting to a cygwin shell, a new line is inserted before the link, making
the command not work:

$ curl -o /usr/local/bin/make.exe
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information

KelemenGabo@L61909 ~
$ <a href="https://dev-www.libreoffice.org/bin/cygwin/make-4.2.1-msvc.exe">https://dev-www.libreoffice.org/bin/cygwin/make-4.2.1-msvc.exe</a>

When copy-pasting the same from the offline LO it works as expected.
This happens on Win 8.1 and Win 10 clients.

Steps to reproduce:
    1. Open attached file in LOOL
    2. Copy the paragraphs to a cygwin shell

Actual results:
Text is broken to two lines.

Expected results:
Text should not be broken.

LibreOffice details:
LOOLWSD 4.2.3: <a href="https://git.libreoffice.org/online/+log/a5d14f2">https://git.libreoffice.org/online/+log/a5d14f2</a>
LOKit 6.2-11: <a href="https://git.libreoffice.org/core/+log/ba552eb">https://git.libreoffice.org/core/+log/ba552eb</a></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>