* TOC wird formatiert

This commit is contained in:
phil 2006-08-01 18:22:03 +00:00
parent 648c391039
commit af92bf354b

View file

@ -54,6 +54,10 @@ try:
content=string.replace(content,"<STRONG>","") content=string.replace(content,"<STRONG>","")
content=string.replace(content,"</STRONG>","") content=string.replace(content,"</STRONG>","")
#TOC formatieren - Der Abschnitt <A NAME="SECTION00001000000000000000"> muss noch allgemeiner werden
content = string.replace(content,'<BR>\n\n<H2><A NAME="SECTION00001000000000000000">\nInhalt</A>\n</H2>\n<!--Table of Contents-->','\n<div id="toc">\n<div id="toctitle">Auf dieser Seite:</div>')
content = string.replace(content,"<!--End of Table of Contents-->","</div>")
# replace "./filename.png" references with "filename.png" # replace "./filename.png" references with "filename.png"
# (this avoids validation warnings) # (this avoids validation warnings)
content = string.replace(content,'HREF="./','HREF="') content = string.replace(content,'HREF="./','HREF="')