Răsfoiți Sursa

Parse TOC correctly with new layout

rdb 16 ani în urmă
părinte
comite
4c7c0b4b68
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      makepanda/makechm.py

+ 1 - 1
makepanda/makechm.py

@@ -120,7 +120,7 @@ def parseManualTOC(filename):
     filename = open(filename)
     text = filename.read()
     filename.close()
-    text = text.split("<h2>Table of Contents</h2>")[1].split("</td>")[0]
+    text = text.split("<h2>Table of Contents</h2>")[1].split("</div>")[0]
     text = "<root>" + text.replace("<li>", "") + "</root>"
     text = re.sub(re.compile("<!--([^>]+)>"), "", text)
     result = []