diff options
Diffstat (limited to 'svtools/source/svhtml/parhtml.cxx')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 6ce236566e61..3f50197e85b7 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -593,11 +593,6 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak ) // Space is protected because it's not a delimiter between // options. sTmpBuffer.append( '\\' ); - if( MAX_LEN == sTmpBuffer.getLength() ) - { - aToken += sTmpBuffer; - sTmpBuffer.setLength(0); - } } if( IsParserWorking() ) { @@ -634,11 +629,6 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak ) { // mark within tags sTmpBuffer.append( '\\' ); - if( MAX_LEN == sTmpBuffer.getLength() ) - { - aToken += sTmpBuffer; - sTmpBuffer.setLength(0); - } } sTmpBuffer.append( '\\' ); break; @@ -761,11 +751,7 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak ) // All remaining characters make their way into the text. sTmpBuffer.appendUtf32( nNextCh ); } - if( MAX_LEN == sTmpBuffer.getLength() ) - { - aToken += sTmpBuffer; - sTmpBuffer.setLength(0); - } + if( ( sal_Unicode(EOF) == (nNextCh = GetNextChar()) && rInput.eof() ) || !IsParserWorking() ) @@ -779,12 +765,6 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak ) } } - if( MAX_LEN == sTmpBuffer.getLength() ) - { - aToken += sTmpBuffer; - sTmpBuffer.setLength(0); - } - if( bContinue && bNextCh ) nNextCh = GetNextChar(); } |