Permalink
Browse files

Fix errors in books.py after common.py split

  • Loading branch information...
1 parent 8532231 commit 1dbffa3f87246b20cd370c1feb8cb28c889e0330 @palfrey committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 books.py
View
@@ -50,7 +50,7 @@
index = 1
while page!=None:
folder = "%s #%02d"%(s.description, index)
- toc = tocStart()
+ toc = tocStart(folder)
titlePattern = compile(s.titlePattern, DOTALL | MULTILINE)
contentPattern = compile(s.contentPattern, DOTALL | MULTILINE)
nextPattern = compile(s.nextPattern, DOTALL | MULTILINE)
@@ -78,7 +78,7 @@
content = contentPattern.search(data)
assert content != None, page
content = content.groups()[0]
- newitems = generatePage(title, content, folder, toc) or newitems
+ newitems = generatePage(page, title, content, folder, toc) or newitems
if link is not None:
link = link.groups()[0]
newpage = urljoin(page, link)

0 comments on commit 1dbffa3

Please sign in to comment.