View Single Post
Old 02-26-2013, 10:32 PM   #10
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,070
Karma: 147983159
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 Jimbo724 View Post
Thanks duck and wolf. I did pretty much what you guys suggested, but I used a little utility called Balthisar Tidy to clean up the html, then I used TextWrangler to find & replace patterns that included the <br>s -- one pattern with <p>, another pattern with </p>. Balthisar Tidy was helpful in creating distinct patterns for one and the other.

FWIW, this is where I found Balthisar Tidy (free):

http://www.balthisar.com/products/tidy

I'm on a Mac. Better tools may exist for Windows.

... now if only I can remember what I did the next time I need to do it. (Set break-before-br to Yes, then replace a pattern including stuff BEFORE <br> with <p> and a pattern including stuff AFTER <br> with </p>. Replace "<br> blankline <p>" with "</p> blankline <p>" or something like that.)
Better tools exist on a MAC. It's called Sigil. You don't need to use some unknown tidying software. If the program you used to make the HTML doesn't make good/valid code, then you shouldn't be using it.

In Sigil you can do your search/replace. You can edit the code and CSS and see your indents.
JSWolf is offline   Reply With Quote