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

            Bug ID: 164958
           Summary: Trailing spaces cannot be underscored in legacy
                    documents
           Product: LibreOffice
           Version: 24.8.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 198890
  --> https://bugs.documentfoundation.org/attachment.cgi?id=198890&action=edit
example document showing the missing underlines

I have an old document I created a couple of years ago, with an older version
of LO. The document is a lecturebook, where I used underlined spaces to
indicate fillable areas, like this:

>>>>>>>>>
Use the proper tense of the verb "see".
Yesterday I ________ my old friend.
>>>>>>>>>  

In some places, the underlined spaces occur not in the middle of a sentence but
at the end of a paragraph, or they are the only content of the paragraph. For
example:

>>>>>>>>>
Nomiate three adjacent countries to Hungary.<end-of-paragraph>
____________<end-of-paragraph>
____________<end-of-paragraph>
____________<end-of-paragraph>
>>>>>>>>>

Out of the subsequent underlined spaces, only the first one is displayed as
underlined, if they are the tariling spaces of the paragraph. 
Instead of
____________
I can see only
_           

But if I add any character after the spaces (so that they are not trailing
spaces anymore), the interim spaces become underlined. After adding a single
"x" to the end, I can see:
____________x

This behaviour is not what I would like to see. The trailing spaces also should
show their underline, even for legacy odt files. 

See the attached disappearing_underscores_at_trailing_spaces.odt for example.

Notes:

1.
If I start a new LO document, the behaviour is what I want. This bug appears
only with legacy ODT files. 

2. 
The legacy ODT file can be "cured" by changing the MsWordCompTrailingBlanks
from true to false in the settigs.xml withing the ODT file. (Rename *.odt to
*.zip to access the settings.xml file.)

3.
See the second attachment disappearing_underscores_at_trailing_spaces_fixed.odt
to see how it looks after fixing it.

I think there should be a checkbox on the Format -> Character -> Font Effects
page:
[_] format trailing spaces too.

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

Reply via email to