View Single Post
Old 02-02-2024, 06:34 PM   #9243
Madisonian
Junior Member
Madisonian began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2024
Device: none
Quote:
Originally Posted by JimmXinu View Post
I don't think that's going to help you.

<pre> tag preserves whitespace. Adding pre to replace_tags_with_spans would cause it to be replaced with <span class="pre">.

Now all the text inside that span does not preserve whitespace and it's all going to be one text block now.

Without seeing some of these stories (SFW story URLs only please), I can't help any more than that. And FYI, I don't expect to be able to help much anyway for stories formatted with <pre>
If that ends up being an issue in practice I could use white-space: pre... Though that reminds me, I could try adding "pre { font-family: serif; }" to the CSS or something like that.

But that doesn't explain why replace_tags_with_spans doesn't seem to be working?

(sorry, I have no SFW URL right now)
Madisonian is offline   Reply With Quote