View Single Post
Old 01-21-2014, 01:50 AM   #8
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by davidfor View Post
I agree with theducks, that's bad. It would be interesting to know what the original source looked like. As it might be something they can fix in the FFDL adapter for the site, I would report it on the FFDL thread with a link to a story or two that has the problem.

Or you can fix the code yourself. The following regex should find them these problems:

Code:
(<p>\*.*)</P>(\s+)(\w+.*)(\s+<p>)
and the replace string is:

Code:
\1</p>\2<p>\3</p>\4
I tested that with what you posted and it should work if they are all like that.
I haven't had problems with the <p> tag whether it's uppercase or lowercase...

I can post something at the FFDL thread to see if there is a way to find these orphan paragraphs and add some paragraph tags to them because I've seen it on many stories.

currently, switching to using the font-size in the <body> tag has seemed to fix the problem.
Amalthia is offline   Reply With Quote