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

--- Comment #6 from Eike Rathke <[email protected]> ---
The problem here is that an underscore plus character leads to a *visual*
replacement with an approximated width of that character, i.e. for '_.' one
space is used and for '_0' two spaces are used. The ODF file format has no
notion of this visual relation and no <number:visually-blank> element or such.
When storing the definition of the number format the number formatter is asked
for the representation, which for the '_._0_0' sequence results in 5 blanks.
The #,###_._0_0 format is stored as

    <number:number-style style:name="N121">
      <number:number number:decimal-places="0" loext:min-decimal-places="0"
number:min-integer-digits="0" number:grouping="true"/>
      <number:text>     </number:text>
    </number:number-style>

with 5 literal spaces in the trailing <number:text> element. Technically when
displaying a number formatted such the result is the same as with _._0_0

-- 
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

Reply via email to