Bug 39298 - Save as html is replacing non breaking hyphen with &nbsp
Summary: Save as html is replacing non breaking hyphen with &nbsp
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 01:07 UTC by cristi falcas
Modified: 2013-07-11 13:30 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
demo document (6.78 KB, application/zip)
2011-07-17 01:08 UTC, cristi falcas
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ‑ or ‑ .
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.