Closed TechnoJo4 closed 2 years ago
See these example chapters:
https://www.royalroad.com/fiction/46842/a-desolate-life/chapter/756699/chapter-1-lightstone-village
The author put empty paragraphs between every other paragraph, forcing paragraph spacing when the user may not want any (and 3x the paragraph spacing if the user has set their spacing to 1)
The author has put whitespace at the start of every paragraph, forcing paragraph indent even if the user does not want any (and at least doubling the amount the user wants if the setting is at 1), + same as first example above
Similar code already exists for ScribbleHub, though RoyalRoad's HTML is a bit more of a mess (and there's also forced paragraph indent to worry about) so the cleanup code is more complicated here.
@TechnoJo4 You also forgot how to make commit messages
Doesn't matter cause they're squashed but I fixed it anyways
please actually review the code now, i would very much like to use royalroad again soon without the formatting being ugly as hell
I did.
Wait what is going on here?