summaryrefslogtreecommitdiff
path: root/pylint/utils.py
diff options
context:
space:
mode:
authorBryce Guinta <bryce.paul.guinta@gmail.com>2018-07-31 13:40:51 -0600
committerClaudiu Popa <pcmanticore@gmail.com>2018-08-01 08:40:54 +0200
commit8bb11f33f3a17fb518f129cd80a11df35aeaaffd (patch)
treec1db6e364620b1d9b693fb53a95d8d3963aef08e /pylint/utils.py
parentaccf8c8313e2fcb08841e4c00c9c6ad99a49c341 (diff)
downloadpylint-git-8bb11f33f3a17fb518f129cd80a11df35aeaaffd.tar.gz
Fix rst italics of generated pylint help
rst expects no space before the '*' end marker
Diffstat (limited to 'pylint/utils.py')
-rw-r--r--pylint/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/utils.py b/pylint/utils.py
index d5de04572..f2aaf6d02 100644
--- a/pylint/utils.py
+++ b/pylint/utils.py
@@ -238,7 +238,8 @@ class MessageDefinition:
desc = _normalize_text(' '.join(desc.split()), indent=' ')
if title != '%s':
title = title.splitlines()[0]
- return ':%s: *%s*\n%s' % (msgid, title, desc)
+
+ return ':%s: *%s*\n%s' % (msgid, title.rstrip(" "), desc)
return ':%s:\n%s' % (msgid, desc)