[Libreoffice-bugs] [Bug 108338] Numeric formatting using the _ does not work

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 16 14:52:15 UTC 2019


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

--- Comment #6 from Eike Rathke <erack at redhat.com> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191016/a22ea932/attachment.html>


More information about the Libreoffice-bugs mailing list