View Single Post
Old 08-10-2014, 10:45 AM   #34
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,097
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
thanks - now I'll have to remember where I might have saved a test case

does that code strip the nested tags from inner to outer, as usually the outermost one is the best candidate for keeping ?
No, it is pretty stupid, when I can, I usually wrap that in a
(<body.*>)\s*
and
\s+</body>

including putting those back in the replace


I do frequent saves, NOT auto fix, and I stop and repair before getting a deep pile. Use the Preview Message to help locate the exception (usually there was a mid document close BQ and another Open BQ.
A tool that could count the additional inner Opening BQ tags and only remove the close after counting back down)
theducks is offline   Reply With Quote