View Single Post
Old 12-15-2017, 03:44 PM   #1
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 173
Karma: 40000
Join Date: Oct 2013
Device: kindle
Replace reoccurring string with increasing number

I got an epub of poetry where each verse is in its own specifically classed paragraph. Is there a quick way to add verse numbers before each paragraph? So to pass from

Code:
<p class="verse>Tu non altro che il canto avrai del figlio,</p>
<p class="verse>o materna mia terra. A noi prescrisse</p>
<p class="verse>il fato illacrimata sepoltura</p>
to

Code:
<p class="verse-number">1</p><p class="verse>Tu non altro che il canto avrai del figlio,
</p>
<p class="verse-number">2</p><p class="verse>o materna mia terra. A noi prescrisse</p>
<p class="verse-number">3</p><p class="verse>il fato illacrimata sepoltura</p>
Thanks.
1v4n0 is offline   Reply With Quote