Description: In plain text with em spaces, the em space appears at the end of or start of a line instead of being invisible, as normal spaces are. That breaks justified text. Steps to Reproduce: 1. Enter some text spanning more than one line, format as justified text. 2. Enter an em space (U+2003) at the end of a line, where the text wraps to the next line. 3. The space will be visible at the end or start (in the case where you add a normal space) of the line, instead of serving as a separator of the adjacent words. Actual Results: See above. Expected Results: Text should wrap correctly, hiding the space at the line break. Reproducible: Always User Profile Reset: No Additional Info: The wrap code should just treat the em space as a normal space when it is at the end of a line, and only show as an em space in the middle of a line.
Created attachment 175390 [details] File showing the problem Added document that shows the bug.
Note: Calligra Words treats this correctly, which is why I think this is a bug.
This also happens with all other "space" characters: NO-BREAK SPACE and all those starting at U+2000 EN QUAD up to U+200C ZERO-WIDTH NON-JOINER. They all have property "spacing mark" without "joiner" property (to allow for a line break). I back up the request.
Peter, I've opened attachment 175390 [details] but couldn't see spaces at end or begining of a line. So perhaps the problem has been gone? Could you please retest with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version. Version: 7.4.0.3 (x64) / LibreOffice Community Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL
@Dieter: All em spaces appear in the middle of lines, where they don't do any harm. If you will copy & paste a few words to force an em space to the end of a line, you will see the problem is still there, even in version 7.4.1.2 Snap. Will upload a new sample file.
Created attachment 182682 [details] New sample file with em space a the end of a line Edited sample file with em space at the end of a line.
Now I can see the problem and confirm it with Version: 7.4.1.2 (x64) / LibreOffice Community Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0 CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL