From c66ecc4d7fd4436a34700f7c1d4a2d879e8aabc0 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Mon, 8 Aug 2011 10:04:59 +0100 Subject: Allow pages to be rendered when the body tag has attributes. Put an edit link on the homepage. --- flatpages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flatpages/views.py') 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"(.*).*(.*)", html, re.DOTALL) + m = re.search(r"(.*).*]*>(.*)", html, re.DOTALL) if m: head, body = m.groups() else: -- cgit v1.2.3