oasegips / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Generate TOC breaks internal links #2389

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Make a header with an id attribute.
2. Make a text with a link to the header
3. Use generate TOC

What is the expected output? What do you see instead?

I expected the TOC to be generated with my ids.  What happened was my ids were 
changed to classes and Sigil made its own ids without adjusting internal links 
to agree.  Moreover, when classes created by Sigil clashed with existing 
classes used as style hooks, headers were styled unexpectedly.

Although the many hours that were wasted when Sigil did this could be matched 
with many hours of readjusting internal links, it seems like that Sigil will do 
the same thing again if I instert new material or change the order of existing 
elements.

What version of the product are you using? On what operating system?

0.7.4, Windows 7

Why would you do anything so destructive with warning people? There is not a 
word about this in the tutorials.

Original issue reported on code.google.com by larseigh...@gmail.com on 3 Sep 2013 at 9:33

GoogleCodeExporter commented 9 years ago
Using Generate TOC does not change any ids in heading classes in the HTML files.

Original comment by daveheil...@gmail.com on 4 Sep 2013 at 6:54