Properly handle outputting newline (and other control characters.)
catseye
8 years ago
23 | 23 |
pass
|
24 | 24 |
|
25 | 25 |
def output(code):
|
26 | |
if code > 126:
|
27 | |
print "&#%d;" % code
|
28 | |
else:
|
29 | |
print chr(code)
|
|
26 |
print "&#%d;" % code
|
30 | 27 |
else:
|
31 | 28 |
def output(code):
|
32 | 29 |
try:
|