[Libreoffice-bugs] [Bug 122837] Libreoffice covertly/silently butchers my text, breaks WSIWYG principle

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jan 27 17:49:50 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=122837

--- Comment #11 from Zsolt <dqeswn at gmail.com> ---
(In reply to Buovjaga from comment #10)
> 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.

Hmmm... in Comment 2 Dieter Praas used simple save as, yet LibreOffice showed
the extra spaces, so why did that happen?

The spaces were retained for me too when I tried then, but now I realize it was
only because I pasted text instead of typing.
If I paste the (plain?) text in my example in the bug description (without the
quotes) and save normally, the spaces are are shown, not only by libreoffice
but also the browser.
(Looking at the files it look pretty different when I paste from here, the text
is in some sort of <pre> tag, instead of <p>, so I guess that some sort of
formatting is copied and that helps)


> 
> 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:
> http://www.fileformat.info/info/unicode/char/00a0/index.htm
> So the method of Export... is a bit sneaky, as it does not use the html
> markup   as one would expect. The browser does respect the NO-BREAK
> SPACE character and renders the result as two spaces.


And why do you think the uncalled for save prompt on exit appears when I copy
in the example files?
Nothing is changed yet I'm prompted to save. This doesn't seem right at all.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190127/4ee197b4/attachment.html>


More information about the Libreoffice-bugs mailing list