Removed extra newline at end of title

This commit is contained in:
Aaron Lichtman 2019-10-26 00:26:11 +02:00
parent e7da8c12a0
commit 1d4bbea6c8
No known key found for this signature in database
GPG key ID: 22368077DE9F9903

View file

@ -82,7 +82,7 @@ class Entry:
# Color date red and make sure first line of title is bolded # Color date red and make sure first line of title is bolded
title = textwrap.fill(colorize_red(date_str) + " " + bold(self.title), self.journal.config['linewrap']) title = textwrap.fill(colorize_red(date_str) + " " + bold(self.title), self.journal.config['linewrap'])
# Make sure all lines after the first are bolded, too # Make sure all lines after the first are bolded, too
title = "".join([bold(part) + "\n" for part in title.split("\n")]) title = "".join([bold(part) + "\n" for part in title.split("\n")]).strip()
body = "\n".join([ body = "\n".join([
textwrap.fill( textwrap.fill(
line, line,