inserting chapter breaks in codeview
Hi Valloric,
I used to be able to insert one chapter break in a big html file and then switch to codeview and copy the sigil chapter break div and then use find and replace to quickly insert a chapterbreak right before every Chapter start.
I can't seem to figure out how to do that since there is no way to "see" what format the chapter break actually takes since as soon as you insert one in book view the new chapter is split off.
I also used the sigil chapter break divs in my xpml2xhtml.py code (converts pml to xhtml) so that upon loading the new html the chapter breaks were all in place for me. This really sped up conversion of the book to an epub.
Is there some code I can insert inside the single large html files I have, that would make Sigil split the file at that point as it loads it? If not, is there a way to do the splitting via a find&replace in codeview?
Thanks,
KevinH
ps. very nice work! I am having fun with the beta release already!
|