Fix the problem with wrapping.

This commit is contained in:
Jeremy Fincher 2004-08-07 00:57:13 +00:00
parent 52cbec4838
commit 7dbb8685f5

View File

@ -93,6 +93,7 @@ class StdoutStreamHandler(logging.StreamHandler):
# already wrapped by Python itself) wrap oddly.
prefixLen = len(record.name) + 2 # ": "
s = textwrap.fill(s, width=78, subsequent_indent=' '*prefixLen)
s.rstrip('\r\n')
return s
def emit(self, record):