Created attachment 55064 [details] Example of soft hyphen being ignored in cross-reference in paragraph 2 but ZWSP being honoured in cross-reference in Paragraph 4. This bug is also present in 3.5.0 Beta2. Problem description: When a cross-reference is inserted as a reference, soft hyphens in the text being referenced are ignored. Steps to reproduce: 1. In a new paragraph, enter string of letters and digits long enough to cause a line wrap. 2. Insert a soft-hyphen, e.g. by ctrl/-, so that the text only breaks at that point. 3. Create a new, empty paragraph with the same styling as the paragraph at Step 1. 4. Select text entered at steps 1 and 2, and create a reference by insert, cross-reference, set-reference, entering a name, and clicking insert in the dialogue box. 5. Create a cross-reference in the new, empty paragraph by insert, cross-reference, choosing Reference in 'Insert reference to', selecting the name from Step 4 and clicking insert in the dialogue box. Observed behaviour: The cross-reference text breaks not at the location of the optional hyphen, but when the cross-reference text reaches the end of line. This is observed in both the writer display and in exported PDF. An example of what is saved in content.xml is the following: <text:p text:style-name="P1"><text:reference-mark-start text:name="testing"/>verylongstringpt1verylongstringpt2<text:reference-mark-end text:name="testing"/></text:p> <text:p text:style-name="P1"><text:reference-ref text:reference-format="text" text:ref-name="testing">verylongstringpt1verylongstringpt2</text:reference-ref></text:p> There is a soft hyphen in the reference definition (between 'pt1' and 'very'), in the first paragraph, but not in the cross reference (the second paragraph). Correct behaviour: The text of the cross-reference should both break at the point of the soft hyphen rather than between letters and digits. Remark: This problem does not occur with zero-width spaces. They are stored in their own text:span elements, and the ZWSP (U+200B) character occurs within a text:span element in the cross-reference. (This partial work-around is more difficult to apply in 3.5.0 beta2 because ZWSP no longer appears on the insert, formatting mark menu. Not all keyboards include ZWSP.) Platform (if different from the browser): Browser: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24
reproduced in 3.6.0 master on Fedora 64 bit
do you still see this bug in recent 4.0.5 or 4.1.1 LibO releases?
Bug is still present in Version 4.1.1.2 Build ID: 410m0(Build:2) on Ubuntu 12.04. The misbehaviour is unchanged from the original bug report, even in a freshly created document. The ZWSP partial work-around continues to work.
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.