aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-08-07 13:09:15 -0400
committerW. Trevor King <wking@drexel.edu>2009-08-07 13:09:15 -0400
commit233b6412d6164e45ab4a5a5f7d9c415330d9a27f (patch)
treedfbcced4617c101afa8554135a865d342f860238 /becommands
parent0343bff04f62db4adba0e9bb3014fc1e252a064b (diff)
downloadbugseverywhere-233b6412d6164e45ab4a5a5f7d9c415330d9a27f.tar.gz
Added DOCTYPE and post-</div> endlines
Diffstat (limited to 'becommands')
-rw-r--r--becommands/html.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/becommands/html.py b/becommands/html.py
index ecbe1d0..841e181 100644
--- a/becommands/html.py
+++ b/becommands/html.py
@@ -354,6 +354,8 @@ class BEHTMLGen():
"""
self.index_first = """
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BugsEverywhere Issue Tracker</title>
@@ -538,7 +540,7 @@ class BEHTMLGen():
for depth,comment in bug_.comment_root.thread(flatten=False):
while len(stack) > depth:
stack.pop(-1) # pop non-parents off the stack
- FD.write("</div>") # close non-parent <div class='comment...
+ FD.write("</div>\n") # close non-parent <div class='comment...
assert len(stack) == depth
stack.append(comment)
lines = ["--------- Comment ---------",
@@ -554,7 +556,7 @@ class BEHTMLGen():
FD.write("<br>\n".join(lines)+"<br>\n")
while len(stack) > 0:
stack.pop(-1)
- FD.write("</div>") # close every remaining <div class='comment...
+ FD.write("</div>\n") # close every remaining <div class='comment...
FD.write(self.end_comment_section)
if fileid == "active":
FD.write(self.detail_last%"../index.html")