Browse Source

Bugfix for linebreak support

pull/110/head
Oliverpool 9 years ago
parent
commit
1086ff06a7
  1. 6
      patacrep/songs/chordpro/data/latex/content_verse
  2. 10
      test/test_chordpro/nolyrics.tex

6
patacrep/songs/chordpro/data/latex/content_verse

@ -1,13 +1,9 @@
(*- if content.nolyrics -*)
\ifchorded
\begin{verse*}
\musicnote{\nolyrics
(* for line in content.lines *)
(( render(line) ))
(*- if not loop.last *)\newline(* endif *)
\musicnote {\nolyrics (( render(line) ))}
(* endfor *)
}
\end{verse*}
\fi
(*- else *)

10
test/test_chordpro/nolyrics.tex

@ -14,19 +14,15 @@
\ifchorded
\begin{verse*}
\musicnote{\nolyrics
\[A B#]
}
\musicnote {\nolyrics \[A B#]}
\end{verse*}
\fi
\ifchorded
\begin{verse*}
\musicnote{\nolyrics
\[A] \[B]\newline
\[C]
}
\musicnote {\nolyrics \[A] \[B]}
\musicnote {\nolyrics \[C]}
\end{verse*}
\fi

Loading…
Cancel
Save