[Libreoffice-bugs] [Bug 113726] Trailing space in cell text not encoded as <text:s/>
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 13 23:02:28 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=113726
Andrew Church <achurch+dfo at achurch.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|NOTABUG |---
Ever confirmed|0 |1
Status|RESOLVED |REOPENED
--- Comment #5 from Andrew Church <achurch+dfo at achurch.org> ---
> The description of <text:s> has, "This element shall be used to represent the second and all following “ “ (U+0020, SPACE) characters in a sequence of “ “ (U+0020, SPACE) characters.
As an initial issue, "shall be used to represent the second" does not imply
"shall not be used to represent the first", so I don't think this is enough to
resolve the question.
Looking at the ODF 1.3 specification
(https://www.oasis-open.org/committees/download.php/67566/OpenDocument-v1.3-part3-schema.odt):
"""
6.1.2. White Space Characters
Consumers shall collapse white space that occur in
* a <text:p> or <text:h> element [...]
Collapsing white space characters is defined by the following algorithm:
[...]
5) Leading " " (U+0020, SPACE) characters at the start of the resulting text
[...] are removed.
"""
I hope I haven't omitted any relevant points by accident, but by my reading of
this algorithm, "<text:p> space</text:p>" should have the initial space removed
and be parsed as the text "space" (5 characters), suggesting that Excel has the
right of it and <text:s/> is required to correctly encode the leading space.
Apologies for not doing the legwork on this in the first place, but reopening.
--
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/20200913/725f0efb/attachment.htm>
More information about the Libreoffice-bugs
mailing list