From ee0b9f8df684c743d17880c5b7e1e69504c27cc1 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sat, 15 Mar 2014 23:15:46 +0100 Subject: svtools: make HTMLOutFuncs::Out_AsciiTag clearer. Change-Id: I89d72383a50707aa8cb958eaea916e8070cfcd82 --- svtools/source/svhtml/htmlout.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'svtools/source/svhtml') diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx index c5e2a508b4e1..00b7b52f9f50 100644 --- a/svtools/source/svhtml/htmlout.cxx +++ b/svtools/source/svhtml/htmlout.cxx @@ -512,10 +512,14 @@ OString HTMLOutFuncs::ConvertStringToHTML( const OUString& rSrc, SvStream& HTMLOutFuncs::Out_AsciiTag( SvStream& rStream, const sal_Char *pStr, bool bOn, rtl_TextEncoding ) { - sal_Char sStt[3] = "' )); + if(bOn) + rStream.WriteCharPtr("<"); + else + rStream.WriteCharPtr("'); + + return rStream; } SvStream& HTMLOutFuncs::Out_Char( SvStream& rStream, sal_Unicode c, -- cgit