summaryrefslogtreecommitdiffstats
path: root/sw/source/filter/html/htmlbas.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/html/htmlbas.cxx')
-rw-r--r--sw/source/filter/html/htmlbas.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmlbas.cxx b/sw/source/filter/html/htmlbas.cxx
index 1ee17bb73717..9dc4cefc6954 100644
--- a/sw/source/filter/html/htmlbas.cxx
+++ b/sw/source/filter/html/htmlbas.cxx
@@ -27,6 +27,7 @@
************************************************************************/
#include <hintids.hxx>
+#include <comphelper/string.hxx>
#include <rtl/strbuf.hxx>
#include <sfx2/sfx.hrc>
#include <svl/svstdarr.hxx>
@@ -203,7 +204,7 @@ void SwHTMLParser::AddScriptSource()
{
aBasicLib =
aToken.Copy( nPos + sizeof(OOO_STRING_SVTOOLS_HTML_SB_library) - 1 );
- aBasicLib.EraseLeadingChars().EraseTrailingChars();
+ aBasicLib = comphelper::string::strip(aBasicLib, ' ');
}
}
@@ -214,7 +215,7 @@ void SwHTMLParser::AddScriptSource()
{
aBasicModule =
aToken.Copy( nPos + sizeof(OOO_STRING_SVTOOLS_HTML_SB_module) - 1 );
- aBasicModule.EraseLeadingChars().EraseTrailingChars();
+ aBasicModule = comphelper::string::strip(aBasicModule, ' ');
}
}