summaryrefslogtreecommitdiff
path: root/pylint/utils.py
diff options
context:
space:
mode:
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)