Bug 43737

Summary: Writer FORMATTING: The color of the EOL space character is wrong (regression since 3.5.0)
Product: LibreOffice Reporter: sanada <yujisana>
Component: WriterAssignee: Michael Stahl (allotropia) <michael.stahl>
Status: RESOLVED NOTABUG    
Severity: normal CC: cedric.bosdonnat.ooo, michael.stahl, sasha.libreoffice
Priority: medium Keywords: regression
Version: 3.5.0 Beta0   
Hardware: All   
OS: All   
See Also: https://issues.apache.org/ooo/show_bug.cgi?id=20878
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: different ODT file in behavior.
3.5.0 screenshot
3.4.4 screenshot
3.3.4 screenshot

Description sanada 2011-12-12 00:31:22 UTC
Created attachment 54344 [details]
different ODT file in behavior.

When a Euro-text wraps on EOL, 'Character Format' of space character placed in the EOL is different from previous version.

including 'Character Format'  following:

+ Font Effects - Underlining, Strikethrough, Overlining
+ Background (color)

I attach ODT file, and screenshot that viewing in each version.
Comment 1 sanada 2011-12-12 00:32:20 UTC
Created attachment 54345 [details]
3.5.0 screenshot
Comment 2 sanada 2011-12-12 00:32:38 UTC
Created attachment 54346 [details]
3.4.4 screenshot
Comment 3 sanada 2011-12-12 00:32:55 UTC
Created attachment 54347 [details]
3.3.4 screenshot
Comment 4 sasha.libreoffice 2012-04-27 10:15:06 UTC
reproduced in 3.5.2 on Fedora 64 bit and Windows 32 bit
regression after 3.4.4. (Version is now set to 3.5.0 beta0)
(in msOffice 2007 EOL is blue, not red)
Comment 5 João Paulo 2012-08-20 19:39:43 UTC Comment hidden (obsolete)
Comment 6 Michael Stahl (allotropia) 2012-09-05 21:20:39 UTC
apparently caused by 93d7bdcb855362b88cdcfcb18ea401d89da973fb
Comment 7 Michael Stahl (allotropia) 2012-09-06 09:51:18 UTC
it's not a bug, it's a feature :)

there is actually a "space" character at the end of the line following "the",
and the paragraph is left aligned.

in older versions, the space at the end of the line was simply not displayed,
but you could still see it if you put the cursor behind "the" and enter a non-space character, then you see the red space on the next line.

with the fix for issue 20878 it now is displayed,
and it has a style "T3" applied that sets a different background color:

    <style:style style:name="T3" style:family="text">
      <style:text-properties fo:background-color="#ff0000"/>
    </style:style>

      <text:p text:style-name="P1">The quick brown fox jumps <text:span text:style-name="T1">over</text:span> <text:span text:style-name="T2">the</text:span><text:span text:style-name="T3"> </text:span>lazy dog. 1234567890</text:p>