summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2013-12-10 16:56:25 +0530
committerMuthu Subramanian <sumuthu@collabora.com>2013-12-10 17:29:20 +0530
commit840f4fc4d677740fc4b0ebcb658f4a828e184dad (patch)
tree31dc4b4c1ffb2a6552975b3b184b9a8cb045cdb8
parent87dd1780a31de9ea1df70a8511c262ff252bf99a (diff)
n#828390: New line is dropped while importing text.
-rw-r--r--include/oox/core/contexthandler2.hxx2
-rw-r--r--oox/source/drawingml/textbodycontext.cxx1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/oox/core/contexthandler2.hxx b/include/oox/core/contexthandler2.hxx
index d60cf3821916..48edd9a8086a 100644
--- a/include/oox/core/contexthandler2.hxx
+++ b/include/oox/core/contexthandler2.hxx
@@ -206,6 +206,8 @@ private:
ContextStackRef mxContextStack; ///< Stack of all processed elements.
size_t mnRootStackSize; ///< Stack size on construction time.
+
+protected:
bool mbEnableTrimSpace; ///< True = trim whitespace in characters().
};
diff --git a/oox/source/drawingml/textbodycontext.cxx b/oox/source/drawingml/textbodycontext.cxx
index d274d5adc63e..77b5e7aef9bf 100644
--- a/oox/source/drawingml/textbodycontext.cxx
+++ b/oox/source/drawingml/textbodycontext.cxx
@@ -52,6 +52,7 @@ TextParagraphContext::TextParagraphContext( ContextHandler2Helper& rParent, Text
: ContextHandler2( rParent )
, mrParagraph( rPara )
{
+ mbEnableTrimSpace = false;
}
// --------------------------------------------------------------------