Browse Source

Merge pull request #88 from patacrep/fix_author

The template shouldn't add a space artist name
pull/89/merge
Louis 9 years ago
parent
commit
97b9585107
  1. 2
      patacrep/songs/chordpro/data/chordpro/song
  2. 2
      patacrep/songs/chordpro/data/latex/song
  3. 6
      patacrep/songs/chordpro/test/author_names.sgc
  4. 4
      patacrep/songs/chordpro/test/author_names.source
  5. 12
      patacrep/songs/chordpro/test/author_names.tex
  6. 2
      patacrep/songs/chordpro/test/greensleeves.sgc
  7. 2
      patacrep/songs/chordpro/test/greensleeves.tex
  8. 4
      patacrep/songs/chordpro/test/metadata.sgc
  9. 4
      patacrep/songs/chordpro/test/metadata.tex

2
patacrep/songs/chordpro/data/chordpro/song

@ -13,7 +13,7 @@
(* endfor -*)
(*- for author in authors -*)
{artist: (( author[1] )) (( author[0] ))}
{artist: (( author[1] ))(( author[0] ))}
(* endfor *)
(*- for key in ['album', 'copyright', 'cov', 'tag'] *)

2
patacrep/songs/chordpro/data/latex/song

@ -16,7 +16,7 @@
}[
by={
(* for author in authors *)
(( author[1] )) (( author[0] ))
(( author[1] ))(( author[0] ))
(*- if not loop.last -*)
,
(* endif *)

6
patacrep/songs/chordpro/test/author_names.sgc

@ -0,0 +1,6 @@
{language: english}
{title: Title}
{artist: The Beatles}
{artist: Oasis}
{artist: The the beatles}

4
patacrep/songs/chordpro/test/author_names.source

@ -0,0 +1,4 @@
{title: Title}
{artist: The Beatles}
{artist: Oasis}
{artist: The the beatles}

12
patacrep/songs/chordpro/test/author_names.tex

@ -0,0 +1,12 @@
\selectlanguage{english}
\beginsong{Title}[
by={
The Beatles,
Oasis,
The the beatles },
]
\endsong

2
patacrep/songs/chordpro/test/greensleeves.sgc

@ -3,7 +3,7 @@
{title: Greensleeves}
{title: Un autre sous-titre}
{title: Un sous titre}
{artist: Traditionnel}
{artist: Traditionnel}
{album: Angleterre}
{cov: traditionnel}

2
patacrep/songs/chordpro/test/greensleeves.tex

@ -5,7 +5,7 @@
Un autre sous-titre\\
Un sous titre}[
by={
Traditionnel },
Traditionnel },
album={Angleterre},
cov={traditionnel},
]

4
patacrep/songs/chordpro/test/metadata.sgc

@ -6,8 +6,8 @@
{title: Subtitle3}
{title: Subtitle4}
{title: Subtitle5}
{artist: Author1}
{artist: Author2}
{artist: Author1}
{artist: Author2}
{album: Album}
{copyright: Copyright}
{cov: Cover}

4
patacrep/songs/chordpro/test/metadata.tex

@ -7,8 +7,8 @@ Subtitle3\\
Subtitle4\\
Subtitle5}[
by={
Author1,
Author2 },
Author1,
Author2 },
album={Album},
copyright={Copyright},
cov={Cover},

Loading…
Cancel
Save