Quote:
Originally Posted by JimmXinu
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.
|
Sorry, was thinking replace_br_with_p was run on the output from getChapterText. I should have checked.
If I remember rightly, the br removal code in the adapter was my attempt to do what replace_br_with_p does. I forgot to remove it. And I think a div or two has been removed from the page. I'll fix it.