View Single Post
Old 07-29-2017, 09:53 AM   #2364
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by davidfor View Post
This seem to be adding a comment and an unbalanced div. I'm seeing this with anything downloaded from Literotica.
...
replace_br_with_p does add the comment and the div tag as a matched pair. These are added as markers so replace_br_with_p can avoid running on the same text again.

But adapter_literotica has code that removes the ending close div.

I don't really know anything about adapter_literotica's text processing, but it kind of looks like it already attempts to change <br>s to <p>s and therefore should never use replace_br_with_p. Or, conversely, that code should be removed from adapter_literotica. Or even that the adapter_literotica should only be applied when replace_br_with_p:false.

I don't use that site, so I'm fairly open to suggestions.

Last edited by JimmXinu; 07-29-2017 at 09:53 AM. Reason: Trim quote
JimmXinu is offline   Reply With Quote