From d8d1e12ec3f91d7f174a10f37f8d573f90e856ba Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Sun, 4 Oct 2009 05:43:10 +0000 Subject: [PATCH] Fix for the .php parsing error. It also happens with .php3 and .cgi too. svn: r13299 --- src/plugins/webreport/NarrativeWeb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 256912775..b3049d38d 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -948,6 +948,10 @@ class BasePage(object): html_escape(title)), self.report.encoding, xmllang ) + # temporary fix for .php parsing error + if self.ext in [".php", ".php3", ".cgi"]: + del page[0] + # add narrative specific body id # add alphabet layout direction to NarrativeWeb to allow for proper spacing for # each individual stylesheet