Quote:
Originally Posted by dman2
I was reading on my Kindle, and noticed that there was a gap in the story. I looked into the HTML on this story ( http://www.literotica.com/s/the-succ...eduction-ch-17) and it has odd formatting, specifically a <p align="center">...</p>. Everything after that on that page is lost. I looked around and found a few other instances of align center and <strong> </strong>. It would seem that basic HTML syntax is allowed in the stories, but I couldn't find a definitive list of allowed HTML.
|
I'm not seeing quite the same behavior. On the page you linked to, there is a centered chapter title block in <p align="center">...</p>. That is not being included in the generated epub. But the text of that page after is included. (Unless told otherwise, I assume all FFDL users download to epub and convert as needed to other formats.)
The "<p align="center">...</p>" is nested inside an outer <p> block, which technically is against standard. The existing literotica.com adapter tries to convert that top outer <p> to a div, but it appears to cause problems with nested <p> tags.
Attached is a test version that attempts to use a different method to deal with that bit of HTML ugliness. It appears to work better to me, but I don't read that site, so I'm really only testing with a couple random stories. So while I don't think it will break for other stories, I can't guarantee it.
BTW, while that chapter title block will appear, it won't appear centered. The attribute align="center" isn't recognized by many e-readers and is stripped out. The other chapters are centered because they use <center> and there is an explicit replacement for <center> tags in FFDL.