diff options
author | W. Trevor King <wking@drexel.edu> | 2009-08-07 13:09:15 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-08-07 13:09:15 -0400 |
commit | 233b6412d6164e45ab4a5a5f7d9c415330d9a27f (patch) | |
tree | dfbcced4617c101afa8554135a865d342f860238 /becommands/html.py | |
parent | 0343bff04f62db4adba0e9bb3014fc1e252a064b (diff) | |
download | bugseverywhere-233b6412d6164e45ab4a5a5f7d9c415330d9a27f.tar.gz |
Added DOCTYPE and post-</div> endlines
Diffstat (limited to 'becommands/html.py')
-rw-r--r-- | becommands/html.py | 6 |
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") |