3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-23 19:19:31 +01:00

ServiceBot: use newline-agnostic str.splitlines() to split up docstrings

This commit is contained in:
James Lu 2016-08-02 12:38:15 -07:00
parent 7a3c8ab637
commit 3126560fb9

View File

@ -307,7 +307,7 @@ class ServiceBot():
doc = func.__doc__
mod = func.__module__
if doc:
lines = doc.split('\n')
lines = doc.splitlines()
# Bold the first line, which usually just tells you what
# arguments the command takes.
lines[0] = '\x02%s %s\x02' % (command, lines[0])