Bug 80000 - A no-break space or hyphen prevents a preceding valid line break opportunity
Summary: A no-break space or hyphen prevents a preceding valid line break opportunity
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.5.4 release
Hardware: x86 (IA32) All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-13 19:51 UTC by Simo Kaupinmäki
Modified: 2014-06-14 00:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
A set of test cases (14.09 KB, text/plain)
2014-06-13 19:51 UTC, Simo Kaupinmäki
Details
A set of test cases (14.09 KB, application/vnd.oasis.opendocument.text)
2014-06-13 19:53 UTC, Simo Kaupinmäki
Details
LibO 4.3 vs Word 2010 (148.53 KB, image/png)
2014-06-14 00:32 UTC, Jay Philips
Details

Description Simo Kaupinmäki 2014-06-13 19:51:49 UTC
Created attachment 101005 [details]
A set of test cases

In some situations, a no-break space (U+00A0) or non-breaking hyphen (U+2011) prevents a valid line break after a normal hyphen (U+002D, U+2010) or dash (U+2013, U+2014) or soft hyphen (U+00AD) that occurs within the preceding word. Specifically, this only seems to happen if the preceding word is also the first word in the paragraph (which means that the issue is unlikely to emerge unless the paragraph begins with a long word or string and the line is rather short).

Reproducible: always
Found in LO 3.5.4.2 (on Debian stable), 4.2.4.2 (on Windows), and 4.3.0.0.beta2 (on both Debian and Windows)

As a workaround, you could use a narrow no-break space (U+202F), a combination of word joiner (U+2060) and normal space (U+0020), or a combination of a regular hyphen (U+002D) and word joiner.

Note: this issue looks similar to bug 58477 but only occurs in a very specific situation. I also occurs on Windows, and in LO 3.5.4.2 and 4.3.0.0.beta2, which are not affected by 58477.
Comment 1 Simo Kaupinmäki 2014-06-13 19:53:58 UTC
Created attachment 101007 [details]
A set of test cases
Comment 2 Jay Philips 2014-06-14 00:31:40 UTC
Confirmed in Linux Mint in 3.3.0, 4.2.4 and 4.3 beta.
Comment 3 Jay Philips 2014-06-14 00:32:12 UTC
Created attachment 101022 [details]
LibO 4.3 vs Word 2010


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.