Files
libreoffice/xmloff/source/token
Laurent Balland 74d9da037c tdf#152724 Extend ODF for blank width "_x"
Number format code "_x" is currently saved as a text string containing a
number of spaces corresponding to the width of character "x". It may be
confusing for user if its format code is modified.
This change introduces a new XML tag XML_BLANK_WIDTH_CHAR to replace the
previous text string if ODF version is extended

<number:text> and <number:embedded-text>:
the attribute is composed of a string containing the used character and its
position in the text string (if position is 0, it is omitted).
Several blank code characters are separated by '_'.
Replacement blanks in the text string are preserved to enable compatibility.

Example: format code
"foo"_M_I_N"!"???,???.000_.000"!"_)
is saved as:
  <number:number-style style:name="N173">
   <number:text loext:blank-width-char="M3_I6_N7">foo       !</number:text>
   <number:number number:decimal-places="6" number:min-decimal-places="6" number:min-integer-digits="6" loext:max-blank-integer-digits="6" number:grouping="true">
    <number:embedded-text number:position="-4" loext:blank-width-char="."> </number:embedded-text>
   </number:number>
   <number:text loext:blank-width-char=")1">! </number:text>
  </number:number-style>

Add QA test

Change-Id: I785e1a14ecccc900e9fd5af88dd7b743fefcc48c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146582
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2023-08-25 17:49:17 +02:00
..