mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Parse TOC correctly with new layout
This commit is contained in:
parent
8011302cef
commit
4c7c0b4b68
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user