diff --git a/patacrep/content/song.py b/patacrep/content/song.py index 9a1b4635..b44fc7f1 100755 --- a/patacrep/content/song.py +++ b/patacrep/content/song.py @@ -41,10 +41,10 @@ class SongRenderer(Content): {song} """).format( - separator="%"*80, - path=self.song.subpath, - song=self.song.render(output=context['filename'], output_format="latex"), - ) + separator="%"*80, + path=self.song.subpath, + song=self.song.render(output=context['filename'], output_format="latex"), + ) #pylint: disable=unused-argument def parse(keyword, argument, contentlist, config): diff --git a/patacrep/songs/chordpro/test/test_parser.py b/patacrep/songs/chordpro/test/test_parser.py index 32216d47..26e5181a 100644 --- a/patacrep/songs/chordpro/test/test_parser.py +++ b/patacrep/songs/chordpro/test/test_parser.py @@ -21,6 +21,12 @@ class TestParsingRendering(unittest.TestCase): maxDiff = None def test_all(self): + """Test all `*.source` files. + + For any given `foo.source`, it is parsed as a chordpro file, and + should be rendered as `foo.sgc` with the chordpro renderer, and + `foo.tex` with the latex renderer. + """ config = DEFAULT_CONFIG.copy() config.update({ 'encoding': 'utf8',