* Ignore carriage returns.

This commit is contained in:
Eelco Dolstra 2008-11-25 02:30:35 +00:00
parent 5024bde8f4
commit 0c478d2f4d
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ void Decoder::finishLine()
if (line[i] == '<') cout << "&lt;";
else if (line[i] == '&') cout << "&amp;";
else if (line[i] == '\r') ; /* ignore carriage return */
else if (line[i] < 32 && line[i] != 9) cout << "&#xfffd;";
else if (i + sz + 33 < line.size() &&
string(line, i, sz) == storeDir &&