sc/source/filter/xml/xmlexprt.cxx |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

New commits:
commit a7589f621fcbe6305335730d2dd86b9230a18594
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Sat Sep 10 21:04:48 2022 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Thu Sep 15 01:47:29 2022 +0200

    tdf#103829 ods export: output <text:tab/> when CELLTYPE_EDIT
    
    regression since LO 4.2
    
    Change-Id: Ic9b6c00af9f1cccdb58ac3eede59268d1c83c767
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139761
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/sc/source/filter/xml/xmlexprt.cxx 
b/sc/source/filter/xml/xmlexprt.cxx
index 77a45ab9b284..3f88b3c88acb 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3114,7 +3114,19 @@ void flushParagraph(
         std::vector<XMLPropertyState> aPropStates;
         const SvxFieldData* pField = toXMLPropertyStates(rExport, aPropStates, 
rSec.maAttributes, xMapper, rAttrMap);
         OUString aStyleName = xStylePool->Find(XmlStyleFamily::TEXT_TEXT, 
OUString(), aPropStates);
-        writeContent(rExport, aStyleName, aContent, pField);
+        if (aContent == "\x001" && !pField)
+        {
+            for (const SfxPoolItem* p : rSec.maAttributes)
+            {
+                if (p->Which() == EE_FEATURE_TAB)
+                {
+                    SvXMLElementExport Tab(rExport, XML_NAMESPACE_TEXT, 
XML_TAB, false, false);
+                    break;
+                }
+            }
+        }
+        else
+            writeContent(rExport, aStyleName, aContent, pField);
     }
 }
 

Reply via email to