FicHub / fichub.net

web frontend for generating ebooks from fanfic
https://fichub.net
GNU Affero General Public License v3.0
45 stars 2 forks source link

Indent paragraphs book-style in epubs. #21

Open HalCanary opened 2 years ago

HalCanary commented 2 years ago

This can be accomplished in CSS with the following:

p{
text-indent:1.25em;
margin-top:0;
margin-bottom:0;
}

This makes reading long fiction easier since it will require fewer page turns.

It may be necessary to replace pairs of <br> tags with paragraphs.

iridescent-beacon commented 2 years ago

I've been rolling the idea around of having multiple pre-defined style options with the ability to write css directly for more advanced users which would solve this issue.

I'll take a look at what some other epub generators do, and if most of them use style like you're suggesting I may change the default.

Appreciate the suggestion! :)