diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2021-11-26 14:03:22 +0300 |
---|---|---|
committer | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2021-12-07 07:09:56 +0300 |
commit | 95a66503602dd7cfb5cff2f719914c3053014993 (patch) | |
tree | e195dda792b6907a6e3d80727fc4133ea0e77659 | |
parent | Bump version to 6.1.7.28 (diff) | |
download | core-95a66503602dd7cfb5cff2f719914c3053014993.tar.gz core-95a66503602dd7cfb5cff2f719914c3053014993.zip |
docx export: preserve spaces in field instructions
MS Word is putting spaces between field mark and field instruction
text. Writer preserves these spaces, but without xml:space="preserve"
they are not displayed by Word later.
Conflicts:
sw/source/filter/ww8/docxattributeoutput.cxx
Change-Id: I480e6febf0ee278b56e9dfc6e0430c5fd5bdfd71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125875
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index be3d70f4a036..a78f1b412798 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1772,7 +1772,7 @@ void DocxAttributeOutput::DoWriteCmd( const OUString& rCmd ) m_aSeqBookmarksNames[sSeqName].push_back(m_sLastOpenedBookmark); } // Write the Field command - m_pSerializer->startElementNS( XML_w, XML_instrText, FSNS(XML_xml, XML_space), "preserve" ); + m_pSerializer->startElementNS( XML_w, XML_instrText, FSNS(XML_xml, XML_space), "preserve", FSEND ); m_pSerializer->writeEscaped( rCmd ); m_pSerializer->endElementNS( XML_w, XML_instrText ); |