apparently the parser does not do that any more, so do it here.
Change-Id: Idd7259ba1435f14be2be5afafa40689a05ab62af
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
if (p >= length)
goto whoops;
c = chars[p++].unicode();
- if (c == '\n')
+ if (c == '\r' || c == '\n')
goto whoops;
*ptr++ = '\\';
}
} else {
int idx = 0;
ushort c;
- while ((c = chars[idx].unicode()) == ' ' || c == '\t' || c == '\n')
+ while ((c = chars[idx].unicode()) == ' ' || c == '\t' || c == '\r' || c == '\n')
++idx;
if (!memcmp(chars + idx, MagicComment.unicode(), MagicComment.length() * 2)) {
idx += MagicComment.length();