summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorGordon Lack <gordon.lack@dsl.pipex.com>2012-05-09 13:51:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-09 13:52:08 +0100
commit3ea961725a8488082e3741df98cbea358d807c87 (patch)
treec8e0e7331cf109b35cc5c6808fd6b5249b80bf00 /svtools
parent831b712d3da08f0050d2ee92c384ad8e6a2e461c (diff)
Incorrect character written out when saved in HTML format
Change-Id: I0ac19bf724be64004aeaecad67e95627a098975f
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/htmlout.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx
index d35d4af48b11..54ab1733ec08 100644
--- a/svtools/source/svhtml/htmlout.cxx
+++ b/svtools/source/svhtml/htmlout.cxx
@@ -411,10 +411,15 @@ rtl::OString lcl_ConvertCharToHTML( sal_Unicode c,
switch( c )
{
case 0xA0: // is a hard blank
+ pStr = OOO_STRING_SVTOOLS_HTML_S_nbsp;
+ break;
+// This was labelled as:
//!! the TextConverter has a problem with this character - so change it to
// a hard space - that's the same as our 5.2
- case 0x2011: // is a hard hyphen
- pStr = OOO_STRING_SVTOOLS_HTML_S_nbsp;
+// but that just breaks html output. Setting the numberic html entity
+// seems fine.
+ case 0x2011: // is a hard hyphen
+ pStr = "#8209";
break;
case 0xAD: // is a soft hyphen
pStr = OOO_STRING_SVTOOLS_HTML_S_shy;