View Single Post
Old 02-07-2021, 03:57 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,022
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Save the eBook so you have it as is. Then do a regex search (check the dot all box on the Mode: line) for....

Code:
<h2>(.*)<h2>.<h3>(.*)<h3>
and replace with...

Code:
<h2>\1: \2<h2>
Then generate the ToC. Once that's done, copy the contents of the NCX ToC and close the eBook without saving it. Then edit the eBook again and paste the NCX you copied over the one that's there. Done.

Last edited by JSWolf; 02-07-2021 at 04:05 PM.
JSWolf is offline   Reply With Quote