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 -*) (*- if content.nolyrics -*)
\ifchorded \ifchorded
\begin{verse*} \begin{verse*}
\musicnote{\nolyrics
(* for line in content.lines *) (* for line in content.lines *)
(( render(line) )) \musicnote {\nolyrics (( render(line) ))}
(*- if not loop.last *)\newline(* endif *)
(* endfor *) (* endfor *)
}
\end{verse*} \end{verse*}
\fi \fi
(*- else *) (*- else *)

10
test/test_chordpro/nolyrics.tex

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

Loading…
Cancel
Save