View Single Post
Old 01-25-2014, 11:06 AM   #85
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: 29,967
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
[QUOTE=LadyKate;2747763]
Quote:
Originally Posted by unboggling View Post
I'm confused.

I'm not much good with html and usually don't fix books by messing with html tags, but I would've thought I'd want most of those <br> tags replaced with </p><p>

I thought <br> didn't have a closing tag? Or is <br/> an alternate form of <br> ?

First, in XHTML all tags need to be closed. So <br> becomes <br />

Now the search string I use is to find a break <br> followed by lowercase alphabetic. That will indicate a break that is not a paragraph marker but just someone putting the hard return because they want the line to "look pretty" lol.

I use regex often in searching for patterns that indicate the line end is not a paragraph end before I put in the paragraphs,
<br> is (like <hr> ) assumed closure (there was no </br> and probably made parsing into a headache as html evolved

<br /> is proper
theducks is offline   Reply With Quote