summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-03-26 19:05:51 +0100
committerMichael Stahl <mst@openoffice.org>2010-03-26 19:05:51 +0100
commitde4206aebc147755cda52f369571a2a4c212e4df (patch)
tree8a554f37b883c0f6a8dc57a9619401d02ee39745 /xmloff
parent0eb1dc13a52d83ea03a7731876172485c6aa2671 (diff)
sw33bf03: #i107240#: SvXMLMetaExport: export elements without whitespace
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/meta/xmlmetae.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/meta/xmlmetae.cxx b/xmloff/source/meta/xmlmetae.cxx
index a124a7c016d1..7b6ab702875c 100644
--- a/xmloff/source/meta/xmlmetae.cxx
+++ b/xmloff/source/meta/xmlmetae.cxx
@@ -478,7 +478,9 @@ SvXMLMetaExport::startElement(const ::rtl::OUString & i_rName,
}
// finally, start the element
- mrExport.StartElement(i_rName, sal_True); //FIXME:whitespace?
+ // #i107240# no whitespace here, because the DOM may already contain
+ // whitespace, which is not cleared when loading and thus accumulates.
+ mrExport.StartElement(i_rName, (m_level > 1) ? sal_False : sal_True);
++m_level;
}