Permalink
Browse files

handle h1, h2, h3 for adding new lines

  • Loading branch information...
1 parent ae44582 commit 69db8b7c4aa95eaf456add8642dc550e435805f3 @stoneyrh committed Mar 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 web2py_online_book.py
View
2 web2py_online_book.py
@@ -110,7 +110,7 @@ def handle_starttag(self, tag, attrs):
self.__consumer = self.__article.set_title
elif self.__levels > 0:
self.__levels = self.__levels + 1
- if tag == 'p' or tag == 'ul' or tag == 'ol':
+ if tag in ('p', 'ul', 'ol', 'h1', 'h2', 'h3'):
self.__article.append('\n')
elif tag == 'table':
self.__consumer = WebDocParser.CodeTable()

0 comments on commit 69db8b7

Please sign in to comment.