mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
ServiceBot: use newline-agnostic str.splitlines() to split up docstrings
This commit is contained in:
parent
7a3c8ab637
commit
3126560fb9
2
utils.py
2
utils.py
@ -307,7 +307,7 @@ class ServiceBot():
|
|||||||
doc = func.__doc__
|
doc = func.__doc__
|
||||||
mod = func.__module__
|
mod = func.__module__
|
||||||
if doc:
|
if doc:
|
||||||
lines = doc.split('\n')
|
lines = doc.splitlines()
|
||||||
# Bold the first line, which usually just tells you what
|
# Bold the first line, which usually just tells you what
|
||||||
# arguments the command takes.
|
# arguments the command takes.
|
||||||
lines[0] = '\x02%s %s\x02' % (command, lines[0])
|
lines[0] = '\x02%s %s\x02' % (command, lines[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user