From 9585f071ac2ce0165c4a7e19672abb4084b8db25 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Wed, 7 Oct 2015 20:51:34 +0200 Subject: [PATCH] Add newline support in nolyrics environments --- patacrep/songs/chordpro/data/latex/content_verse | 2 ++ test/test_chordpro/nolyrics.tex | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/patacrep/songs/chordpro/data/latex/content_verse b/patacrep/songs/chordpro/data/latex/content_verse index 7f27c4eb..79824406 100644 --- a/patacrep/songs/chordpro/data/latex/content_verse +++ b/patacrep/songs/chordpro/data/latex/content_verse @@ -3,6 +3,8 @@ \musicnote{\nolyrics (* for line in content.lines *) (( render(line) )) + (*- if not loop.last *)\newline(* endif *) + (* endfor *) } \end{verse*} diff --git a/test/test_chordpro/nolyrics.tex b/test/test_chordpro/nolyrics.tex index 2f017724..68ec8e26 100644 --- a/test/test_chordpro/nolyrics.tex +++ b/test/test_chordpro/nolyrics.tex @@ -21,7 +21,7 @@ \begin{verse*} \musicnote{\nolyrics - \[A] \[B] + \[A] \[B]\newline \[C] } \end{verse*}