Skip to content
Browse files

Notice and break on blank/near-empty content pages

  • Loading branch information...
1 parent bb97175 commit b8b347b8795c090394170bc7d2ef5cf321577255 @palfrey committed Mar 10, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 books.py
View
2 books.py
@@ -95,6 +95,8 @@ def infiniteRange():
content = contentPattern.search(data)
assert content != None, page
content = content.groups()[0]
+ content = content.strip()
+ assert len(content) > 30, (folder, page, content)
newitems = generatePage(page, title, content, folder, toc) or newitems
if link is not None:
link = link.groups()[0]

0 comments on commit b8b347b

Please sign in to comment.
Something went wrong with that request. Please try again.