Quote:
Originally Posted by KevinH
Is this the message you saw:
Code:
if (ss.cleanOn() & CLEANON_SAVE) {
if (not_well_formed) {
QApplication::restoreOverrideCursor();
bool auto_fix = QMessageBox::Yes == QMessageBox::warning(this,
tr("Sigil"),
tr("This EPUB has HTML files that are not well formed and "
"your current Clean Source preferences are set to automatically mend on Save. "
"Saving a file that is not well formed will cause it to be automatically "
"fixed, which very rarely may result in data loss.\n\n"
"Do you want to automatically mend the files before saving?"),
QMessageBox::Yes|QMessageBox::No);
QApplication::setOverrideCursor(Qt::WaitCursor);
if (auto_fix) {
CleanSource::ReformatAll(resources, CleanSource::Mend);
not_well_formed = false;
}
} else {
CleanSource::ReformatAll(resources, CleanSource::Mend);
}
}
If so you should probably have simply selected the "No" button and it will abort the mend and just save whatever broken code you had. If you say, "Yes" it will mend all files on save as instructed by your preference settings.
Auto cleaning on save is equivalent to running Mend (with no prettify) on every xhtml file. If you typically use that anyway, I would simply look at the very last xhtml you edited without running mend to make sure it looks okay after reopening the epub.
|
No, I just saw a window with the buttons and the ability to X out of it. There were no extensive details like you've shown. As I recall the window gave the option to "fix" the poorly formed stuff but I avoided that. And there were probably three buttons. Maybe "Yes," "No" and "Cancel."
I'd be curious to know what you think of my preference settings (I'll attach it again) and if there's anything I can do to make them work better for me. (I am a novelist and besides the cover and some images of other covers at the back of the book the epubs I make are exclusively text.)
Honestly, this is getting away from me a bit in regards to what my optimal preference settings should be and whether I should be should be using the
Code:
Tools>Reformat HTML>Mend and Pretify all HTML files
which I normally use a lot.
I never use the
Code:
Tools>Reformat HTML>Mend all HTML files
option.
Thanks.