> In trying to fix this, I've spent a while looking at the kjots code, > particularly the generateHtml functions in kjotsentry.cpp. I can't > figure out why the html is generated by using QTextCursors and > QDocuments rather than simply copying over the html from the saved > .book files. I'm sure there's a clever reason it's neccesary, but it > is causing the bug I mentioned above somehow. The generateHtml functions create the Book View. As you can see from the code, these functions create the Table of Contacts and all its links, the separators, the quick links at the bottom of each page and so on. Reading this from the .book files would be difficult, since none of this actually exists in them. :) The html for the page text itself is acquired using the QTextCursors so that you get the data that has been entered in to the "live" page. If you loaded the page text from the .book file, you would not get any information that the user just inputted into the page, just whatever had last been saved. > The use of the