View Single Post
Old 05-07-2025, 09:14 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,361
Karma: 20212223
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Sorry this isn’t a direct answer to your question, but maybe it’ll fix the problem altogether. Since you mentioned you edit the html 99% of the time, and only used book view to insert spaces in your verse, I figured this might be an easier solution.

There was a new function/feature added to Sigil a while back called CLIPS. It allows you to create a button/link/clip that will insert whatever text/code you’d like at your cursor position. This makes those simple, repetitive, edits much faster.

I’m not sure what exact code you use for your verse, but here is an example:
Code:
<div class="verse">
  <p>Roses are red</p>
  <p>Violets are blue</p>
  <p>I need to put a line break in here.How about you?</p>
</div>
Simply put the cursor where you want to insert the code/text and click the clip.

If your clip is defined as "</p>\n\n<p class="space">" you will end up with this:

Code:
<div class="verse">
  <p>Roses are red</p>
  <p>Violets are blue</p>
  <p>I need to put a line break in here.</p>

  <p class="space">How about you?</p>
</div>
You can create and save as many different clips as you want and access/use them in different ways. You can have a dedicated pane, or you can have your favorites (up to 40 of them IIRC) in a toolbar.

Cheers!
Turtle91 is offline   Reply With Quote