summaryrefslogtreecommitdiffstats
path: root/svtools/source/svhtml
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-22 23:40:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-23 10:10:09 +0000
commitb7ea36101497c275cb08b0e37facbde656197d9b (patch)
treea05e25d4f01c94c69712d17a1ab4cdbc925ef355 /svtools/source/svhtml
parent_SVSTDARR_ULONGS not used here (diff)
downloadcore-b7ea36101497c275cb08b0e37facbde656197d9b.tar.gz
core-b7ea36101497c275cb08b0e37facbde656197d9b.zip
add stripStart, can replace EraseTrailingChars
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r--svtools/source/svhtml/htmlsupp.cxx6
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 )