mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
Fix the problem with wrapping.
This commit is contained in:
parent
52cbec4838
commit
7dbb8685f5
@ -93,6 +93,7 @@ class StdoutStreamHandler(logging.StreamHandler):
|
|||||||
# already wrapped by Python itself) wrap oddly.
|
# already wrapped by Python itself) wrap oddly.
|
||||||
prefixLen = len(record.name) + 2 # ": "
|
prefixLen = len(record.name) + 2 # ": "
|
||||||
s = textwrap.fill(s, width=78, subsequent_indent=' '*prefixLen)
|
s = textwrap.fill(s, width=78, subsequent_indent=' '*prefixLen)
|
||||||
|
s.rstrip('\r\n')
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def emit(self, record):
|
def emit(self, record):
|
||||||
|
Loading…
Reference in New Issue
Block a user