View Single Post
Old 10-05-2012, 12:39 PM   #89
Iznogood
Guru
Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.
 
Iznogood's Avatar
 
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
Quote:
Originally Posted by theducks View Post
A simple replace would be cool ( A tick box to enable the '/Next' function? )
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.

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?
Iznogood is offline