From e6d8db254e7b534762215ba0380bb633cc34632b Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Wed, 7 Oct 2015 20:57:34 +0200 Subject: [PATCH] Remove unwanted space on lyric books when writing only chords --- patacrep/songs/chordpro/data/latex/content_verse | 2 ++ test/test_chordpro/nolyrics.tex | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/patacrep/songs/chordpro/data/latex/content_verse b/patacrep/songs/chordpro/data/latex/content_verse index 79824406..b102574b 100644 --- a/patacrep/songs/chordpro/data/latex/content_verse +++ b/patacrep/songs/chordpro/data/latex/content_verse @@ -1,4 +1,5 @@ (*- if content.nolyrics -*) +\ifchorded \begin{verse*} \musicnote{\nolyrics (* for line in content.lines *) @@ -8,6 +9,7 @@ (* endfor *) } \end{verse*} +\fi (*- else *) \begin{(( content.type ))} (* for line in content.lines *) diff --git a/test/test_chordpro/nolyrics.tex b/test/test_chordpro/nolyrics.tex index 68ec8e26..eec4b275 100644 --- a/test/test_chordpro/nolyrics.tex +++ b/test/test_chordpro/nolyrics.tex @@ -12,19 +12,23 @@ \end{verse} +\ifchorded \begin{verse*} \musicnote{\nolyrics \[A B#] } \end{verse*} +\fi +\ifchorded \begin{verse*} \musicnote{\nolyrics \[A] \[B]\newline \[C] } \end{verse*} +\fi \begin{verse}