View Single Post
Old 09-26-2015, 09:56 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,143
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ignaz wrangel View Post
What I have in mind is to use the break inserted by sigil (<p><br /></p>) as a marker to locate the paragraphs that follow it and add a class to their <p> tag, the marker is then deleted. Is this what you mean?

something like

Code:
<p><br /></p>[^<]*<p\b[^>]*>

replace with:

<p class=“scenebreak”>
Sort of.

If you have...

<p><br /></p>
<p>Some paragraph text.</p>

then it would be best to be...

<p class="scenebreak">Some paragraph text.</p>

That would make the code even neater and would mean that you can also include a text indent of 0.
JSWolf is offline   Reply With Quote