View Single Post
Old 07-06-2015, 11:11 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,126
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
See, what you posted originally (book view) did not really represent your problem.

Always ALSO Include the code like you did


2 Steps (could do in one... but simpler this way)

I would remove JUST the number and leave the rest

Code:
<span class="calibre_1">\d+</span>\s
Replace: (a single space)
See what this look like in Book (preview) View

Not enough code for the second part: for removing the <br class="calibre1"/>

OK, you could stop and leave the lines ragged (not flowing cleanly) because the next phase is tricky work.

If you see <br class="calibre1"/> <br class="calibre1"/>
this needs to be replaced FIRST as these are simulated Paragraph breaks If in the text part

replace the pairing with the (you did not show that code ) ></p>\s*<p class="calibre_"><

NOTE: you are ENDING the previous <P and Starting the NEXT <P (AKA Splitting). THERE WILL BE PROBLEMS, Usually around the Headings. you just need to learn how to fix code. (This is not an easy cleanup)

Once the double breaks are done

You want to remove the rest of the <br class="calibre1"/>\s and replace those with a single space. You should end with a Paragraph that flows

Last edited by theducks; 07-07-2015 at 10:06 AM. Reason: actual code
theducks is offline   Reply With Quote