summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-03-15 23:15:46 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-04-06 22:02:10 +0200
commitee0b9f8df684c743d17880c5b7e1e69504c27cc1 (patch)
tree80e775fb22d483a6abd230edd02036772a7f93e9 /svtools
parent96c548a7c6700cbc5206e5ea80c1eb87d349f3a3 (diff)
svtools: make HTMLOutFuncs::Out_AsciiTag clearer.
Change-Id: I89d72383a50707aa8cb958eaea916e8070cfcd82
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/htmlout.cxx12
1 files changed, 8 insertions, 4 deletions
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 )
- sStt[1] = 0;
- return (rStream.WriteCharPtr( sStt ).WriteCharPtr( pStr ).WriteChar( '>' ));
+ if(bOn)
+ rStream.WriteCharPtr("<");
+ else
+ rStream.WriteCharPtr("</");
+
+ rStream.WriteCharPtr(pStr).WriteChar('>');
+
+ return rStream;
}
SvStream& HTMLOutFuncs::Out_Char( SvStream& rStream, sal_Unicode c,