From 3126560fb9f301a29c89c15de41fffcc327fceb0 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 2 Aug 2016 12:38:15 -0700 Subject: [PATCH] ServiceBot: use newline-agnostic str.splitlines() to split up docstrings --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 27f884a..b2ca733 100644 --- a/utils.py +++ b/utils.py @@ -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])