Browse Source

Improve html template

pull/126/head
Oliverpool 9 years ago
parent
commit
f9c3b3d505
  1. 8
      patacrep/songs/chordpro/data/html/content_verse
  2. 53
      test/test_chordpro/newline.html

8
patacrep/songs/chordpro/data/html/content_verse

@ -1,5 +1,11 @@
(* if content.directive() *)
<p class="directives">
(*- elif content.nolyrics -*)
<p class="nolyrics">
(*- else *)
<p class="(( content.type ))">
(* for line in content.lines *)
(*- endif *)
(* for line in content.lines -*)
(( render(line) ))
(*- if not loop.last *)<br>
(* endif *)

53
test/test_chordpro/newline.html

@ -1,50 +1,43 @@
<span class="song-language">Lang: en</span><br>
<div class="song_content">
<p class="verse">
This is a verse<br>
With a new line<br>
<br>
The second part of the verse<br>
Is this line
<p class="verse">This is a verse<br>
With a new line<br>
<br>
The second part of the verse<br>
Is this line
</p>
<p class="verse">
Here is a new line at the end<br>
<p class="verse">Here is a new line at the end<br>
</p>
<p class="verse">
Foo bar
<p class="verse">Foo bar
</p>
<p class="verse">
<br>
And a new line<br>
At the beginning
<p class="verse"><br>
And a new line<br>
At the beginning
</p>
<p class="chorus">
New lines can also<br>
<br>
Be in chorus
<p class="chorus">New lines can also<br>
<br>
Be in chorus
</p>
<p class="bridge">
New lines can also<br>
<br>
Be in bridges
<p class="bridge">New lines can also<br>
<br>
Be in bridges
</p>
<p class="verse">
New lines can also<br>
<br>
Be surrounded by spaces
<p class="verse">New lines can also<br>
<br>
Be surrounded by spaces
</p>
<p class="verse">
New lines cannot
<p class="verse">New lines cannot
</p>
</div>
</div>
Loading…
Cancel
Save