Kaydet (Commit) d7017dbc authored tarafından Luboš Luňák's avatar Luboš Luňák

append text when reading from xml

The xml parser apparently can call the characters() callback several
times for one text content (if it needs to un-escape maybe?), so
append, otherwise some content would be overwritten.
üst 5799813f
...@@ -354,7 +354,7 @@ void XmlStreamBuilder::appendClosingTag( int token ) ...@@ -354,7 +354,7 @@ void XmlStreamBuilder::appendClosingTag( int token )
void XmlStreamBuilder::appendCharacters( const rtl::OUString& chars ) void XmlStreamBuilder::appendCharacters( const rtl::OUString& chars )
{ {
assert( !tags.empty()); assert( !tags.empty());
tags.back().text = chars; tags.back().text += chars;
} }
} // namespace } // namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment