diff options
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/htmlsupp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/svhtml/htmlsupp.cxx b/svtools/source/svhtml/htmlsupp.cxx index 96cb4f154012..292d36f6a14f 100644 --- a/svtools/source/svhtml/htmlsupp.cxx +++ b/svtools/source/svhtml/htmlsupp.cxx @@ -31,11 +31,11 @@ #include <ctype.h> #include <stdio.h> -#include <tools/urlobj.hxx> - +#include <comphelper/string.hxx> #include <svtools/parhtml.hxx> #include <svtools/htmltokn.h> #include <svtools/htmlkywd.hxx> +#include <tools/urlobj.hxx> // Table for converting option values into strings static HTMLOptionEnum const aScriptLangOptEnums[] = @@ -135,7 +135,7 @@ void HTMLParser::RemoveSGMLComment( String &rString, sal_Bool bFull ) if( bFull ) { // "//" or "'", maybe preceding CR/LF - rString.EraseTrailingChars(); + rString = comphelper::string::stripEnd(rString, ' '); xub_StrLen nDel = 0, nLen = rString.Len(); if( nLen >= 2 && rString.Copy(nLen-2).CompareToAscii("//") == COMPARE_EQUAL ) |