Skip to content

Commit

Permalink
Merge pull request #50 from sopel-irc/comment-trailing-space
Browse files Browse the repository at this point in the history
formatting: extra whitespace != truncated comment
  • Loading branch information
dgw authored Dec 3, 2019
2 parents e636eb1 + 9acdf3b commit 4a30838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel_modules/github/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def fmt_branch(s, row=None):


def fmt_short_comment_body(body):
lines = [line for line in body.splitlines() if line and line[0] != '>']
lines = [line.strip() for line in body.splitlines() if line and line[0] != '>']
short = textwrap.wrap(lines[0], 250)[0]
if len(lines) > 1 or short != lines[0]:
short += ' […]'
Expand Down

0 comments on commit 4a30838

Please sign in to comment.