Kaydet (Commit) 3b147851 authored tarafından Miklos Vajna's avatar Miklos Vajna

fix failing testcase

Change-Id: I191f7bb6286998222877db863e45b24e0e7618b8
üst f593a2e4
...@@ -945,10 +945,10 @@ void RTFDocumentImpl::singleChar(sal_uInt8 nValue, bool bRunProps) ...@@ -945,10 +945,10 @@ void RTFDocumentImpl::singleChar(sal_uInt8 nValue, bool bRunProps)
void RTFDocumentImpl::text(OUString& rString) void RTFDocumentImpl::text(OUString& rString)
{ {
if (rString.getLength() == 1) if (rString.getLength() == 1 && m_aStates.top().nDestinationState != DESTINATION_DOCCOMM)
{ {
// No cheating! Tokenizer ignores bare \r and \n, their hex \'0d / \'0a form doesn't count, either. // No cheating! Tokenizer ignores bare \r and \n, their hex \'0d / \'0a form doesn't count, either.
char ch = rString.getStr()[0]; sal_Unicode ch = rString.getStr()[0];
if (ch == 0x0d || ch == 0x0a) if (ch == 0x0d || ch == 0x0a)
return; return;
} }
......
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