View Single Post
Old 10-05-2012, 01:32 PM   #98
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by norway1456 View Post
A tick box (or similar) to automatically advance to the next occurrance of the search pattern (or not to advance to the next occurrance, depending on what should be the default/standard behaviour) would be wonderful. Eventually, it could be a setting under Preferences or similar, since (as you say) this is not something that is often used.
Don't worry, the next beta has the "Replace but don't move" request taken care of
Quote:
By the way: the new Sigil is terriffic. Well done! But there is some behaviour that I don't understand. Perhaps a bug?

1. Open sigil. Turn tidy completely off
2. Tools -> Table of contents -> Generate table of contents
3. Press OK

This is mmy code before I generate table of contents:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p>&nbsp;</p>
</body>
</html>
And this is after:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
</head>
<body>
<p>&nbsp;</p>
</body>
</html>
I know that it is very irratic of the user to generate an epub with an empty html file, but the point is: why does a generation of ToC alter the source files?
Interesting, I see that too. To answer your question, Generate ToC will insert anchor identifiers and potentitally modify heading tags, so that is why (in general) files will get modified.

However in this particular case your file being blank means that really it shouldn't have been touched, since it doesn't have a heading tag on it. Sounds like an optimisation we could make, we will take a look into it. Thanks for the report.
kiwidude is offline