View Single Post
Old 03-29-2026, 04:30 PM   #7
ryder
Enthusiast
ryder began at the beginning.
 
Posts: 44
Karma: 10
Join Date: May 2024
Device: Clara 2E
Quote:
Originally Posted by Karellen View Post
Yea, I think you are going about this all wrong.

If all you are trying to do is remove the indent, then simply adjust the CSS

Assuming class="calibre1" is used for all first paragraphs in a chapter, then simply add

text-indent: 0;

to the calibre1 css code.
Thank you, this would work if calibre1 would be just for the first paragraphs, but unfortunately it's not. It's used for every paragraph. So if I put the 0 on indent for calibre1 then there is no indent in every line of the ebook. So what I am trying to do is to seperate the first paragraph from a normal paragraph by copying a lil bit more of the code which makes it unique.

I have come across some codes which are often repeated through many ebooks. And they go like this:

height:1em">*</p><p class="calibre_">
or
</span></p><p class="calibre_1">
or
</span></span></p><p class="calibre_1">

Sometimes it is not calibre_1, but calibre3 or calibre_4 etc. So my thinking was to put every possible combination from _ to 9 inside the search and replace rule and let calibre do the conversion.

But calibre won't even work if I just look up the right code, put it inside search and replace. It's just the same after the conversion. So I have to add my code manually to every ebook by editing it. And I am just talking about the bad conversions. I wouldn't do that with good ebooks of course. Just trying to save the old ones without too much of a hassle.
ryder is offline   Reply With Quote