View Single Post
Old 01-20-2014, 10:05 PM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Amalthia View Post
That is the problem with some of these stories there is no code at the start of the paragraph.

for example the author would have:


I don't think the "replace_br_with_p: true" option can fix this.
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.
davidfor is offline   Reply With Quote