git @ Cat's Eye Technologies ZOWIE / 4268459
Properly handle outputting newline (and other control characters.) catseye 8 years ago
1 changed file(s) with 1 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2323 pass
2424
2525 def output(code):
26 if code > 126:
27 print "&#%d;" % code
28 else:
29 print chr(code)
26 print "&#%d;" % code
3027 else:
3128 def output(code):
3229 try: