I use the TOC tool in the Editor (or main Calibre toolbar )
But that is some ugly code (
Code:
<p class="calibre_12"><font size="4"><span class="bold">Chapter I</span></font></p><p class="calibre_12">- AT MAYTREE COTTAGE</p>
)
font sizing should be done in the CSS. <h tags are bold by default
First step is to 'pretty' the code using the flower icon (main toolbar) in the editor so any pattern match has a better chance
Personally, I would code this as:
Code:
<h3 class="chapno">Chapter I <br />- AT MAYTREE COTTAGE</h3>
This creates a 2 line Visual, but shows up in the TOC as a single entry
where .chapno in the CSS would control the style

line-height: 2 ; spreads the lines further apart
I think this EDITOR REGEX search may work. (Replace and Search, NEVER all)
Find <p class="calibre_12"><font size="4"><span class="bold">(Chapter .+?)</span></font></p><p class="calibre_12">(- .+?)</p>
Replace <h3 class="chapno">\1 <br />\2</h3>