Bug 39298

Summary: Save as html is replacing non breaking hyphen with &nbsp
Product: LibreOffice Reporter: cristi falcas <cristi.falcas>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jeffdchang, LibreOffice, sh2d, yfjiang
Priority: medium    
Version: Inherited From OOo   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: demo document

Description cristi falcas 2011-07-17 01:07:47 UTC
If a document contains a non-breaking hyphen (U+2011), when saved as html, this caracter is replaced with non-breaking space. Which corrupts the text. It should be at least replaces with a regular hyphen.

Tested on latest Ubuntu, Fedora and a 3.3 Windows version.

How to reproduce:

Open an empty document.
Insert a few non breaking hyphen (CTRL+SHIFT+HYPHEN) characters.
Save
Save as html
Open the resulting html: all nb hyphens are now spaces.
Comment 1 cristi falcas 2011-07-17 01:08:33 UTC
Created attachment 49202 [details]
demo document
Comment 2 Jeffrey 2011-07-17 20:13:28 UTC
Reproduced on LibreOffice 3.4  340m1(Build:103) for OpenSuse Linux.
Comment 3 Stephan Hennig 2011-10-04 08:35:18 UTC
Confirmed with LibO 3.4.3 on Windows XP.

Unicode slot for the non-breaking hyphen is decimal 8209.  Therefore, the correct HTML mark-up for the non-breaking hyphen is &#8209; or &#x2011; .
Comment 4 Björn Michaelsen 2011-12-23 13:24:03 UTC
Since all new unconfirmed bugs start in state UNCONFIRMED now and old unconfirmed bugs were moved to NEEDINFO with a explanatory comment, all bugs promoted above those bug states to NEW and later are automatically confirmed making the CONFIRMED whiteboard status redundant. Thus it will be removed.
Comment 5 cristi falcas 2011-12-26 23:18:16 UTC
same thing with 3.5beta2
Comment 6 Rainer Bielefeld Retired 2012-01-24 22:51:03 UTC
[Reproducible] with "LibreOffice 3.5.0 RC1 German UI/Locale [Build-ID: b6c8ba5-8c0b455-0b5e650-d7f0dd3-b100c87] on German WIN7 Home Premium (64bit).

Also a problem with OOo 3.1.1, so inherited
Comment 7 A (Andy) 2013-05-06 20:54:37 UTC
not reproducible with LO 4.0.2.2 (Win7 Home, 64bit)

Does this issue still persist for you with the latest release of LO?
Comment 8 Andras Timar 2013-07-11 13:30:14 UTC
Actually I see this bug fixed even in 3.6.5.