[PATCH] docx export: also export rPr in <pPr> (paragraph mark stylin...

Pierre-Eric Pelloux-Prayer (via Code Review) gerrit at gerrit.libreoffice.org
Fri Jan 11 05:44:11 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1649

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/49/1649/1

docx export: also export rPr in <pPr> (paragraph mark styling)

Change-Id: I179363e7d0acc3d6a1f95dcfe975275a9243e863
---
M sw/source/filter/ww8/docxattributeoutput.cxx
1 file changed, 6 insertions(+), 0 deletions(-)



diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index b97b368..aefd172 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -442,6 +442,9 @@
 {
     WriteCollectedParagraphProperties();
 
+    // insert copy of <rPr>
+    m_pSerializer->copyTopMarkPop();
+
     m_pSerializer->endElementNS( XML_w, XML_pPr );
 
     if ( m_nColBreakStatus == COLBRK_WRITE )
@@ -973,6 +976,9 @@
 
     m_pSerializer->endElementNS( XML_w, XML_rPr );
 
+    // Clone <rPr>...</rPr> for later re-use, in pPr
+    m_pSerializer->copyTopMarkPush();
+
     // write footnotes/endnotes if we have any
     FootnoteEndnoteReference();
 

-- 
To view, visit https://gerrit.libreoffice.org/1649
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I179363e7d0acc3d6a1f95dcfe975275a9243e863
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Pierre-Eric Pelloux-Prayer <pierre-eric at lanedo.com>



More information about the LibreOffice mailing list