Changeset View
Changeset View
Standalone View
Standalone View
src/TerminalCharacterDecoder.cpp
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Line(s) | 258 | if ((characters[i].rendition & RE_EXTENDED_CHAR) != 0) { | |||
---|---|---|---|---|---|
263 | } | 263 | } | ||
264 | } else { | 264 | } else { | ||
265 | //escape HTML tag characters and just display others as they are | 265 | //escape HTML tag characters and just display others as they are | ||
266 | const QChar ch = characters[i].character; | 266 | const QChar ch = characters[i].character; | ||
267 | if (ch == QLatin1Char('<')) { | 267 | if (ch == QLatin1Char('<')) { | ||
268 | text.append(QLatin1String("<")); | 268 | text.append(QLatin1String("<")); | ||
269 | } else if (ch == QLatin1Char('>')) { | 269 | } else if (ch == QLatin1Char('>')) { | ||
270 | text.append(QLatin1String(">")); | 270 | text.append(QLatin1String(">")); | ||
271 | } else if (ch == QLatin1Char('&')) { | ||||
272 | text.append(QLatin1String("&")); | ||||
271 | } else { | 273 | } else { | ||
272 | text.append(ch); | 274 | text.append(ch); | ||
273 | } | 275 | } | ||
274 | } | 276 | } | ||
275 | } else { | 277 | } else { | ||
276 | // HTML truncates multiple spaces, so use a space marker instead | 278 | // HTML truncates multiple spaces, so use a space marker instead | ||
277 | // Use   instead of   so xmllint will work. | 279 | // Use   instead of   so xmllint will work. | ||
278 | text.append(QLatin1String(" ")); | 280 | text.append(QLatin1String(" ")); | ||
Show All 28 Lines |