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

--- Comment #14 from Jonas Camillus Jeppesen <[email protected]> ---
I was about to open an bug report on what I now believe to be the same
bug/issue as this.

Working on RTF-output for the Pygments project I see consecutive spaces
rendered width variable width or maybe even replaced with a number of other
characters (in Libre Office Write 7.6.x on Linux and Windows 10).

Both my own minimal example [1], as well as the originally attached
RFT-example[2] render correctly in WordPad[3] on Windows or Apache
OpenOffice[4] (Windows+Linux).

An interesting observation I made was that adding the following line to the
RTF-files makes the spaces render correctly in Libre Office.


{\*\generator anystring} 

The `{\*\generator ...}`-line appears in RTF-files produced by WordPad. I can't
however find the \generator control word described anywhere in the
rtf-specification. `\*` instructs readers to ignore the control word (a
destination) if they do not implement it. WordPad appears to use it to declare
which version of Microsoft Rich Edit was used to generate the file (e.g.
`{\*\generator Riched20 10.0.18362}`.

[5] shows how replacing the blank line 3 in [1] with `{\*\generator anystring}`
cause Libre Office to render the spaces at equal width. [5] also show a
selection of the first 4 characters in Libre Office, e.g. ` 2  ` (space 2 space
space), which Libre Office detects as a selection of 6 characters.

As I understand Comment 8 by Buovjaga a commit has been identified which
introduced the bug. That commit is dated August 2019 so I picked a version from
2018 (6.1.6.3) and that version (6.1.6.3) is free of this bug/issue. It renders
the spaces correctly.


[1] https://bugs.documentfoundation.org/attachment.cgi?id=191766
[2] https://bugs.documentfoundation.org/attachment.cgi?id=174514
[3] https://bugs.documentfoundation.org/attachment.cgi?id=191750
[4] https://bugs.documentfoundation.org/attachment.cgi?id=191751
[5] https://bugs.documentfoundation.org/attachment.cgi?id=191767

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to