slight refactoring: strip album only once
@@ -774,11 +774,10 @@ class LyricsPlugin(plugins.BeetsPlugin):
% (self.artist,
u'=' * len(self.artist))
if self.album != item.album:
- tmpalbum = self.album = item.album
+ tmpalbum = self.album = item.album.strip()
if self.album == '':
tmpalbum = u'Unknown album'
- self.rest += u"%s\n%s\n\n" % (tmpalbum.strip(),
- u'-' * len(tmpalbum.strip()))
+ self.rest += u"%s\n%s\n\n" % (tmpalbum, u'-' * len(tmpalbum))
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\n" % (title_str,
