From a6a7edcfc873f40b3a8833c7c8a4cfaa857a96f1 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Wed, 28 Oct 2015 08:16:34 +0100 Subject: [PATCH] Replace # with {\shrp} in nolyrics environment --- patacrep/data/ast_templates/chordpro/latex/content_verse | 2 +- test/test_chordpro/nolyrics.tex | 2 +- test/test_compilation/datadir.tex.control | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patacrep/data/ast_templates/chordpro/latex/content_verse b/patacrep/data/ast_templates/chordpro/latex/content_verse index ae3aa34f..72859732 100644 --- a/patacrep/data/ast_templates/chordpro/latex/content_verse +++ b/patacrep/data/ast_templates/chordpro/latex/content_verse @@ -6,7 +6,7 @@ \ifchorded \begin{verse*} (* for line in content.lines *) - \musicnote {\nolyrics (( render(line) ))} + \musicnote {\nolyrics (( render(line)|replace("#", "{\shrp}") ))} (* endfor *) \end{verse*} \fi diff --git a/test/test_chordpro/nolyrics.tex b/test/test_chordpro/nolyrics.tex index 343f4e63..3ce5d6b3 100644 --- a/test/test_chordpro/nolyrics.tex +++ b/test/test_chordpro/nolyrics.tex @@ -14,7 +14,7 @@ \ifchorded \begin{verse*} - \musicnote {\nolyrics \[A B#]} + \musicnote {\nolyrics \[A B{\shrp}]} \end{verse*} \fi diff --git a/test/test_compilation/datadir.tex.control b/test/test_compilation/datadir.tex.control index 9444d4de..0e37b1e7 100644 --- a/test/test_compilation/datadir.tex.control +++ b/test/test_compilation/datadir.tex.control @@ -117,7 +117,7 @@ Chordpro}[ \ifchorded \begin{verse*} - \musicnote {\nolyrics \[Am C#m]} + \musicnote {\nolyrics \[Am C{\shrp}m]} \end{verse*} \fi