View Single Post
Old 11-29-2025, 07:54 PM   #4
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 22
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-T3, Kobo Libra Colour
Quote:
Originally Posted by Ghostcat View Post
Personally, I would not use Transfer HTML for this; I would use Search and Replace.

Search for <br/> and replace with <br/><span class="drop_caps_tab"/>.

That said you appear to be missing the closing </span> tag. This would make the search slightly more complicated as you would need account for the closing tag in your search. So for the example given, I suggest:

Search for <br/>\n("?[A-Z]) and replace with <br/><span class="drop_caps_tab"/>\n\1</span>.
Thank you so much - Search and Replace worked perfectly!

I am not missing the closing tag, these are both self-closing tags because they have /> in the end. I actually want an empty <span/> tag inserted because of the properties that it brings - it is simulating a tab through padding like so:

.drop_caps_tab {
padding-left: 0.6cm;
}

Last edited by LenaWolf; 11-29-2025 at 07:56 PM. Reason: Added CSS code for clarity.
LenaWolf is offline   Reply With Quote