sw/source/filter/ww8/docxattributeoutput.cxx | 8 ++++++++ writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-)
New commits: commit 1b0d9fa747c4a7fcdcd1c057bc2b31345f4bfe76 Author: Lennard <wassert...@nefkom.net> Date: Sun Dec 9 16:29:47 2012 +0100 docx import/export non-breaking hyphen and soft hyphen God made non-breaking hyphen and saw that it was gone he told us to fix it as soon as hell we promised that we would Change-Id: I1d2bb8f7542f5ffec36fafdbdb07ace1cb62fb4a Signed-off-by: Lennard <wassert...@nefkom.net> Reviewed-on: https://gerrit.libreoffice.org/1279 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 8414e60..29bef4a 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1062,6 +1062,14 @@ void DocxAttributeOutput::RunText( const String& rText, rtl_TextEncoding /*eChar impl_WriteRunText( m_pSerializer, nTextToken, pBegin, pIt ); m_pSerializer->singleElementNS( XML_w, XML_br, FSEND ); break; + case 0x1E: //non-breaking hyphen + impl_WriteRunText( m_pSerializer, nTextToken, pBegin, pIt ); + m_pSerializer->singleElementNS( XML_w, XML_noBreakHyphen, FSEND ); + break; + case 0x1F: //soft (on demand) hyphen + impl_WriteRunText( m_pSerializer, nTextToken, pBegin, pIt ); + m_pSerializer->singleElementNS( XML_w, XML_softHyphen, FSEND ); + break; default: if ( *pIt < 0x0020 ) // filter out the control codes { diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index c6f03bb..37c3336 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -44,8 +44,8 @@ static const sal_Unicode uFtnEdnRef = 0x2; static const sal_Unicode uFtnEdnSep = 0x3; static const sal_Unicode uTab = 0x9; static const sal_Unicode uPgNum = 0x0; -static const sal_Unicode uNoBreakHyphen = 0x1e; -static const sal_Unicode uSoftHyphen = 0x1f; +static const sal_Unicode uNoBreakHyphen = 0x2011; +static const sal_Unicode uSoftHyphen = 0xAD; static const sal_uInt8 cFtnEdnCont = 0x4; static const sal_uInt8 cFieldStart = 0x13;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits