View Single Post
Old 01-27-2024, 03:13 PM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks to all --

I added the Hx test since I only wanted this for headings and put it in my Saved Searches

Sometimes there's a digit before the br/, e.g. Chapter 1<br/>Going Home

Find: <([Hh][1-6])>(.*?)<br/>(.*?)</\1>

Replace: <\1>\2 <br/>\3</\1>

(space before the br/ )


It'll probably fail for a 3 line header

IMHO a better solution would be for the TOC module just change <br/> to space
phossler is offline   Reply With Quote