The guys in the white coats will be coming to take me away soon....
(long post alert)
Here's the scenario: I downloaded a classic novel recently and I wished to make some changes in the formating. All of the chapters were in html. I needed to add a chapter to the book in order to add some critical information which I wanted included in my copy. I added a new chapter (which was in xhtml), added the text that I wanted, renamed the chapter in the left hand column, dragged that chapter to the top and inserted in where I wanted it, then added a line on the content page and added the necessary link. The link worked well in Sigil, so I saved the file. After loading it on my Nook Color via Calibre I discovered that the book hung on the chapter I added. Not sure why. So I removed if from my Nook, and from my book file and returned to my edited version. The chapter I added was back down at the bottom of the chapter listing (it's an 86 chapter book).
Being that I know next to nothing about the coding of these book I figured that perhaps the fact that that chapter was xhtml and rest of the book was html was causing the problem.
So I set about changing that. Basically I placed my cursor on the top of each chapter and did a command/return which opened the chapter in a new page with an xhtml extension. The now empty html chapters were deleted. I edited the content page and made sure the chapter links all pointed to their proper chapter. I tested each and every one of them to make sure that everything worked and looked proper. So far, so good. Then I did a final save on the book and closed sigil. Prior to loading it on my Nook I decided to double check everything and opened the epub file with Sigil one last time. And, to my dismay, the entire book was exactly as it was prior to all the editing work I did. Complete with all chapters as html, and one that I added as xhtml. A couple hours of work down the drain.
So can anyone give me a clue as to what caused this to happen? Is there some code hidden in the book which causes everything to revert to the original format?
I don't mind re-doing what I did, but I don't want to attempt this if in the end I'm going to get the same results. I just don't get it.