From 594ab09510f96042cfd794c38e0bba2a306e6310 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Fri, 10 Jun 2016 12:41:25 +0200 Subject: [PATCH] Quick fix to the missing trailing newline bug --- patacrep/songs/chordpro/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/songs/chordpro/__init__.py b/patacrep/songs/chordpro/__init__.py index 8464131f..9d10d7b4 100644 --- a/patacrep/songs/chordpro/__init__.py +++ b/patacrep/songs/chordpro/__init__.py @@ -42,7 +42,7 @@ class ChordproSong(Song): def _parse(self): """Parse content, and return the dictionary of song data.""" with encoding.open_read(self.fullpath, encoding=self.encoding) as song: - song = parse_song(song.read(), self.fullpath) + song = parse_song(song.read().strip()+"\n", self.fullpath) self.authors = song.authors self.titles = song.titles self.lang = song.get_data_argument('language', self.lang)