From 36f84bfedd137f16ce6263f6b57c9f89e70be7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Mon, 17 Jul 2017 11:44:06 -0400 Subject: [PATCH] add missing trailing newline after lyrics block this would yield a warning for every song --- beetsplug/lyrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 57265a469..f2a59c5b5 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -781,9 +781,9 @@ class LyricsPlugin(plugins.BeetsPlugin): u'-' * len(tmpalbum.strip())) title_str = u":index:`%s`" % item.title.strip() block = u'| ' + item.lyrics.replace(u'\n', u'\n| ') - self.rest += u"%s\n%s\n\n%s\n" % (title_str, - u'~' * len(title_str), - block) + self.rest += u"%s\n%s\n\n%s\n\n" % (title_str, + u'~' * len(title_str), + block) def writerest_indexes(self, directory): """Write conf.py and index.rst files necessary for Sphinx