https://bugs.documentfoundation.org/show_bug.cgi?id=97837
--- Comment #3 from Laurent BP <[email protected]> ---
(In reply to Laurent BP from comment #2)
> String "/" works well also.
This assertion is wrong.
All strings limited to " ", "-", "/", ".", ",", ":", "\'" and same strings with
a second character set as " "
are not quoted during import. See:
http://opengrok.libreoffice.org/xref/core/xmloff/source/style/xmlnumfi.cxx#lcl_EnquoteIfNecessary
Then parser reads it as date, time, decimal or thousand delimiter, which fails
to recognize the number format and set it as General format. See
http://opengrok.libreoffice.org/xref/core/xmloff/source/style/xmlnumfi.cxx#1708
I see two possibilities:
- during parsing, store an alternative string with ALL text in quote; then if
number format recognition fails, test with this alternative string
- during export, store an attribute in <text> field, which identifies it as
quoted text, to make difference with text used as delimiter. Right now, both
quoted text and delimiter text is stored in the same way.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs