<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 - FORMATTING: Writer doesn't break the line correctly after closing double quotation mark and semicolon"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126635">126635</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FORMATTING: Writer doesn't break the line correctly after closing double quotation mark and semicolon
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>joaopauloag-freedesktop@yahoo.com.br
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
After ending a sentence with '“<reference to a heading>”;' (remove the single
quotation marks), the line is broken after the ending double quotation mark,
but before the semicolon (which becomes alone on the new line). The last word
inside the <reference to a heading> should go to the next line with the closing
quotation mark and the semicolon.

I created a sample PDF that shows the 1st sentence with the error and the 2nd
sentence shows how it should have been formatted by Writer.

I also attached the source ODT file for examining. The font used to format it
is Merriweather Sans, which can be obtained at
"<a href="https://www.fontsquirrel.com/fonts/merriweather-sans">https://www.fontsquirrel.com/fonts/merriweather-sans</a>".


Steps to Reproduce:
1. Create some heading with several words. The last word should not have an
hyphen (for example it should be "word" and not "hyphenated-word").
2. Create a new paragraph and type some text. For example, it could be: This is
some text that goes before the cross-reference
3. Go to Menu Insert, Cross-reference, Cross-references, select the "Type"
"Headings", select the "Insert reference to" "Reference", select the created
heading and select the button "Insert".
4. Insert the intelligent quotation marks surrounding the cross-reference you
inserted.
5. Type ";" (without the quotation marks) after the closing curly quotation
mark. It should be like this: “This is the reference that will be used for the
test”;
6. If the line is not broken after the closing quotation mark (”) and before
the semicolon (;), type a few letters before the inserted cross-reference until
the line is broken incorrectly.

Actual Results:
The line is broken on the wrong place (after the closing quotation mark and
before the semicolon).

Expected Results:
The line break should go before the last word, which should go to the next line
along with the closing quotation mark and semicolon.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Tested with:

Version: 6.1.6.3
Build ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU threads: 8; OS: Windows 10.0; UI render: default; 
Locale: pt-BR (pt_BR); Calc: CL

Also tested with:

Versão: 6.2.5.2 (x64)
ID de compilação: 1ec314fa52f458adc18c4f025c545a4e8b22c159
Threads da CPU:8; SO:Windows 10.0; Realizador da interface: padrão; VCL: win; 
Local: pt-BR (pt_BR); Idioma de IU: pt-BR
Calc: threaded

Also tested with OpenGL enabled and disabled (it happens whether always).</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>