Add XHTMLStream::operator<<(char). Failure to have it was causing things

like:
	xs << ' ';
to send an int. 

32, Pavel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35397 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-09-15 17:19:29 +00:00
parent b743c226ca
commit 64241a6d6d
2 changed files with 14 additions and 0 deletions

View File

@ -286,6 +286,18 @@ XHTMLStream & XHTMLStream::operator<<(char_type c)
}
XHTMLStream & XHTMLStream::operator<<(char c)
{
clearTagDeque();
if (nextraw_) {
os_ << c;
nextraw_ = false;
} else
os_ << html::escapeChar(c);
return *this;
}
XHTMLStream & XHTMLStream::operator<<(int i)
{
clearTagDeque();

View File

@ -110,6 +110,8 @@ public:
///
XHTMLStream & operator<<(int);
///
XHTMLStream & operator<<(char);
///
XHTMLStream & operator<<(html::StartTag const &);
///
XHTMLStream & operator<<(html::EndTag const &);