Skip to content

Commit

Permalink
Bugfix: Fixes a broken regex
Browse files Browse the repository at this point in the history
  • Loading branch information
alobbs committed Oct 12, 2011
1 parent fc055ed commit cd238ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PageDoc.py
Expand Up @@ -117,8 +117,12 @@ def __call__ (self):

# Read it
html = open(local_file, 'r').read()
rc = re.compile('<body.*?>(.*?)</body>', re.IGNORECASE|re.DOTALL);
body = rc.search(html)
tmp = re.findall ('<body.*?>(.*?)</body>', html, re.IGNORECASE|re.DOTALL)
if not tmp:
page += CTK.RawHTML ('no body')
return page.Render()

body = tmp[0]

# Layout
if sidebar:
Expand Down

0 comments on commit cd238ff

Please sign in to comment.