From e6adb5e7da94fa3ff3175c2a00fbf6bbe67153ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Sat, 15 Jul 2017 14:47:36 -0400 Subject: [PATCH] cosmetic: do not use needless heredoc --- beetsplug/lyrics.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index f32e34bfd..a1af67363 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -723,13 +723,8 @@ class LyricsPlugin(plugins.BeetsPlugin): if item is None: return self.artist = item.artist - self.rst = u'''%s -%s - -.. contents:: - :local: - -''' % (self.artist, u'=' * len(self.artist)) + self.rst = u"%s\n%s\n\n.. contents::\n :local:\n\n" \ + % (self.artist, u'=' * len(self.artist)) if self.album != item.album: tmpalbum = self.album = item.album if self.album == '':