Browse Source

Quick fix to the missing trailing newline bug

pull/223/head
Oliverpool 9 years ago
parent
commit
594ab09510
  1. 2
      patacrep/songs/chordpro/__init__.py

2
patacrep/songs/chordpro/__init__.py

@ -42,7 +42,7 @@ class ChordproSong(Song):
def _parse(self): def _parse(self):
"""Parse content, and return the dictionary of song data.""" """Parse content, and return the dictionary of song data."""
with encoding.open_read(self.fullpath, encoding=self.encoding) as song: 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.authors = song.authors
self.titles = song.titles self.titles = song.titles
self.lang = song.get_data_argument('language', self.lang) self.lang = song.get_data_argument('language', self.lang)

Loading…
Cancel
Save