Make cleanBin escape carriage returns.

We get confusing output on terminals if we leave \r unescaped.
This commit is contained in:
Aldo Cortesi 2012-09-27 10:59:46 +12:00
parent b308824193
commit 064b4c8001

View File

@ -10,7 +10,7 @@ def cleanBin(s, fixspacing=False):
o = ord(i) o = ord(i)
if (o > 31 and o < 127): if (o > 31 and o < 127):
parts.append(i) parts.append(i)
elif i in "\n\r\t" and not fixspacing: elif i in "\n\t" and not fixspacing:
parts.append(i) parts.append(i)
else: else:
parts.append(".") parts.append(".")