summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/htmlout.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx
index deb530ba0192..cf3f746fc89f 100644
--- a/svtools/source/svhtml/htmlout.cxx
+++ b/svtools/source/svhtml/htmlout.cxx
@@ -885,9 +885,8 @@ SvStream& HTMLOutFuncs::OutScript( SvStream& rStrm,
{
// Wir schreiben das Modul mm ANSI-Zeichensatz, aber mit
// System-Zeilenumbruechen raus.
- ByteString sSource(rtl::OUStringToOString(rSource, eDestEnc));
- sSource.ConvertLineEnd( GetSystemLineEnd() );
- rStrm << sSource.GetBuffer();
+ rtl::OString sSource(rtl::OUStringToOString(rSource, eDestEnc));
+ rStrm << sSource.getStr() << sNewLine;
}
rStrm << sNewLine;