View Single Post
Old 03-21-2025, 05:23 PM   #10488
MondSemmel
Junior Member
MondSemmel began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2025
Device: none
I really like the epub output for Royal Road (some tools struggled to preserve e.g. italicized text formatting), but I'd like to preserve an author's center-aligned text, and none of my attempts so far have worked.

Example from this chapter): text with a dynamically generated class and a style="text-align: center" CSS attribute.

What I've tried:
1)
Code:
[www.royalroad.com]
add_to_keep_html_attrs:,align
<-> Doesn't work, but then again, it's not an HTML tag.

2)
Code:
[epub]
add_to_output_css:
 p[style*="text-align: center"] { text-align: center !important; }
3)
Code:
## Outright overwrite output_css by removing the "text-align: justify" part from "body":
[epub]
output_css:
 body { background-color: #%(background_color)s;
        margin: 2%%;
	adobe-hyphenate: none; }
 [...]
---
I would be thankful for any advice.
PS: Any time I want to test a change to personal.ini, I currently delete and then redownload the entire fic. Is there a way to test settings, e.g. by downloading a single chapter, rather than an entire fic?
MondSemmel is offline   Reply With Quote