<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Libreoffice covertly/silently butchers my text, breaks WSIWYG principle"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122837#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Libreoffice covertly/silently butchers my text, breaks WSIWYG principle"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122837">bug 122837</a>
              from <span class="vcard"><a class="email" href="mailto:todventtu@suomi24.fi" title="Buovjaga <todventtu@suomi24.fi>"> <span class="fn">Buovjaga</span></a>
</span></b>
        <pre>(In reply to Zsolt from <a href="show_bug.cgi?id=122837#c9">comment #9</a>)
<span class="quote">> (In reply to Buovjaga from <a href="show_bug.cgi?id=122837#c8">comment #8</a>)
> > It is not LibreOffice butchering your text - it is HTML! You need to use
> > non-breaking spaces. Type the two spaces with: Ctrl-Shift-space
> > You will notice they appear as grey boxes in LibreOffice.

> Evene if this is true, it doesn't explain LibO asking to save when no
> changes to the document occured.
> Also how do you explain the spaces being retained when you do the same in a
> new document.</span >

Ok, I took a closer look at this.

LibreOffice (confusingly) has two different methods to save html: File - Save
as AND File - Export... (XHTML). They produce different results (yes, silly).

If you go via Save as, both spaces are saved as regular spaces, which means
viewing the text in a browser will *render them* as a single space. The two
spaces are retained inside the .html markup, but browsers will butcher the
rendering as they please.

If you go via Export..., the first space will be saved as a regular space, but
the second one will be saved as the Unicode character NO-BREAK SPACE:
<a href="http://www.fileformat.info/info/unicode/char/00a0/index.htm">http://www.fileformat.info/info/unicode/char/00a0/index.htm</a>
So the method of Export... is a bit sneaky, as it does not use the html markup
&nbsp; as one would expect. The browser does respect the NO-BREAK SPACE
character and renders the result as two spaces.</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>