Apache OpenOffice (AOO) Bugzilla – Issue 39642
Sometimes wrapping at em dash is undesirable
Last modified: 2013-08-07 14:38:26 UTC
Bug 5982 was legitimate and needed to be fixed, but with the fix in place, a new problem has arisen with no clean workaround. If a very long line ending with an em dash happens to go just over the line, the em dash ends up on a line by itself. In this case, the line should be broken before the previous word. The same (but I grant it is even more complicated to implement) when there is just a little punctuation. (This is one of many issues where a "no break here" character style would be useful, rather than relying wholly on no-break spaces and no-break hyphens.)
Created attachment 20886 [details] Small sample
reassigned to SBA.
Confirmed. This happens even in OpenOffice versions of 1.1.3 Beta and 1.9.65 when the Operating System is Windows XP. But when the Operating System used is Linux(NLD), the document opens correctly with some text before the hyphen.
I reproduce this bug with new document in open office 1.1.4 with windows XP. But it is also reproduciable in open office 1.1.4 with Linux(red hat 7.3). The reproduced steps: a. Open a new document, and type a long sentence until the line will be wrapped. Leave the cursor at the end of this line. b. From "Insert - Special Character", choosing "General Punctuation" at subset,and finding the em dash and insert it at the end of file. After pressing OK, this punctuation “em dash†will be wrapped by itself. I try all of other punctuations that belong to the "General Punctuation". At the same position of file, inserting different punctuation from "Insert - Special Character - General Punctuation", every punctuation will wrapped with the word that is just before it except em dash. It is bug.
SBA: Prio set to P4, Target Office Later. Type changed to "Enhancement". SBA ->FME: I think the following is desired: (1) The em dash is NOT a "forbidden character". It it may occur at the end or beginning of a line, so "both ends" of it are possible "break points". (2) The em dash shall stay with the previous word if it is NOT followed by a word.
SBA: See also issue 42168.