diff --git a/patacrep/data/templates/songs/chordpro/latex/song b/patacrep/data/templates/songs/chordpro/latex/song index af97c285..b1a35715 100644 --- a/patacrep/data/templates/songs/chordpro/latex/song +++ b/patacrep/data/templates/songs/chordpro/latex/song @@ -8,7 +8,7 @@ \beginsong{ (*- for title in titles -*) - (( title|escape_specials('{}&#_^%~$\\') )) + (( title|escape_specials('{}&#_^%$\\') )) (*- if not loop.last -*) \\ (* endif *) @@ -16,7 +16,7 @@ }[ by={ (* for author in authors *) - (( author[1]|escape_specials('{}&#_^%~$\\') )) (( author[0]|escape_specials('{}&#_^%~$\\') )) + (( author[1]|escape_specials('{}&#_^%$\\') )) (( author[0]|escape_specials('{}&#_^%$\\') )) (*- if not loop.last -*) , (* endif *) @@ -24,7 +24,7 @@ }, (* for key in ['album', 'copyright'] *) (* if key in metadata *) - (( key ))={(( metadata[key]|escape_specials('{}&#_^%~$\\') ))}, + (( key ))={(( metadata[key]|escape_specials('{}&#_^%$\\') ))}, (* endif *) (* endfor *) (* if 'url' in metadata *) @@ -39,7 +39,7 @@ (* endblock *) (* endif *) (* for key in metadata.morekeys *) - (( key.keyword ))={(( key.argument|escape_specials('{}&#_^%~$\\') ))}, + (( key.keyword ))={(( key.argument|escape_specials('{}&#_^%$\\') ))}, (* endfor *) ] diff --git a/test/test_book/special.tex.control b/test/test_book/special.tex.control index 74825e21..967a6c22 100644 --- a/test/test_book/special.tex.control +++ b/test/test_book/special.tex.control @@ -134,10 +134,10 @@ guitar, \selectlanguage{english} -\beginsong{\& \$ \% \# \_ \} \{ \textasciitilde{} \textasciicircum{} \textbackslash{}}[ +\beginsong{\& \$ \% \# \_ \} \{ ~ \textasciicircum{} \textbackslash{}}[ by={ - \& \$ \% \# \_ \} \{ \textasciitilde{} \textasciicircum{} \textbackslash{} }, - album={\& \$ \% \# \_ \} \{ \textasciitilde{} \textasciicircum{} \textbackslash{}}, + \& \$ \% \# \_ \} \{ ~ \textasciicircum{} \textbackslash{} }, + album={\& \$ \% \# \_ \} \{ ~ \textasciicircum{} \textbackslash{}}, url={http://&$\%\#_~^}, ] diff --git a/test/test_song/special.tsg b/test/test_song/special.tsg index c5b82988..8011323a 100644 --- a/test/test_song/special.tsg +++ b/test/test_song/special.tsg @@ -1,9 +1,9 @@ \selectlanguage{english} -\beginsong{\& \$ \% \# \_ \} \{ \textasciitilde{} \textasciicircum{} \textbackslash{}}[ +\beginsong{\& \$ \% \# \_ \} \{ ~ \textasciicircum{} \textbackslash{}}[ by={ - \& \$ \% \# \_ \} \{ \textasciitilde{} \textasciicircum{} \textbackslash{} }, - album={\& \$ \% \# \_ \} \{ \textasciitilde{} \textasciicircum{} \textbackslash{}}, + \& \$ \% \# \_ \} \{ ~ \textasciicircum{} \textbackslash{} }, + album={\& \$ \% \# \_ \} \{ ~ \textasciicircum{} \textbackslash{}}, url={http://&$\%\#_~^}, ]