diff options
author | Martin Green <martin.speleo@gmail.com> | 2011-08-08 10:04:59 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2011-08-08 10:04:59 +0100 |
commit | 4c4b6ef11febe13f6bb7db4510e115853aca50a5 (patch) | |
tree | c51a3fd57c252ff4f7273eaa7eff8575854de364 /flatpages | |
parent | d75bad22de7e41a7049f6873762f0c38a62cff30 (diff) | |
download | troggle-4c4b6ef11febe13f6bb7db4510e115853aca50a5.tar.gz troggle-4c4b6ef11febe13f6bb7db4510e115853aca50a5.tar.bz2 troggle-4c4b6ef11febe13f6bb7db4510e115853aca50a5.zip |
Allow pages to be rendered when the body tag has attributes. Put an edit link on the homepage.
Diffstat (limited to 'flatpages')
-rw-r--r-- | flatpages/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flatpages/views.py b/flatpages/views.py index 1a445ea..a080437 100644 --- a/flatpages/views.py +++ b/flatpages/views.py @@ -56,7 +56,7 @@ def flatpage(request, path): if path.endswith(".htm") or path.endswith(".html"): html = o.read() - m = re.search(r"<head>(.*)</head>.*<body>(.*)</body>", html, re.DOTALL) + m = re.search(r"<head>(.*)</head>.*<body[^>]*>(.*)</body>", html, re.DOTALL) if m: head, body = m.groups() else: |