View Single Post
Old 07-15-2013, 09:27 PM   #5
MizSuz
Connoisseur
MizSuz began at the beginning.
 
Posts: 63
Karma: 10
Join Date: Jul 2011
Device: Sony Touch, Nook Simple Touch, Kobo Aura, Android w/CoolReader
Quote:
Originally Posted by theducks View Post
You were relying on Tidy to clean up after you deliberately made mess (if you insist on continuing this insanity, change your clean source preferences to use Tidy HTML)

IMHO a tiny bit more REGEX and you could have rebuilt with the proper H2 closing tag
Code:
<p class="calibre2">Chapter (.+?)</p>
Code:
<h2 class="chhead">Chapter \1</h2>
Lots cleaner (code save reliability wise)
Thank you. I will save those and try to use them again in the future.

The truth is that I am hit or miss with the Regex and I don't like to come here and ask people to troubleshoot code for me all the time. I feel like I'm taking advantage.

When I was using XP the making a mess and letting Tidy fix it was working for me, now not so much.
MizSuz is offline   Reply With Quote