28 #include <QtCore/QTextStream>
32 , _includeTrailingWhitespace(true)
63 plainText.reserve(count);
65 int outputCount = count;
71 for (
int i = count-1 ; i >= 0 ; i--)
73 if ( characters[i].character !=
' ' )
80 for (
int i=0;i<outputCount;i++)
82 plainText.append( QChar(characters[i].character) );
91 ,_innerSpanOpen(false)
104 openSpan(text,
"font-family:monospace");
133 for (
int i=0;i<count;i++)
135 QChar ch(characters[i].character);
154 style.append(
"font-weight:bold;");
158 style.append(
"font-decoration:underline;");
196 text.append(
" ");
213 text.append( QString(
"<span style=\"%1\">").
arg(style) );
218 text.append(
"</span>");