[view] make RegistryView xhtml valid
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Mon, 10 Aug 2009 09:58:40 -0700
changeset 2775 bd4e61e3a600
parent 2757 c8e28e1754f0
child 2776 2dd05edb2f33
[view] make RegistryView xhtml valid
web/views/startup.py
--- a/web/views/startup.py	Mon Aug 10 15:54:28 2009 +0200
+++ b/web/views/startup.py	Mon Aug 10 09:58:40 2009 -0700
@@ -168,7 +168,7 @@
         keys = sorted(self.vreg)
         self.w(u'<p>%s</p>' % ' - '.join('<a href="/_registry#%s">%s</a>' % (key, key) for key in keys))
         for key in keys:
-            self.w(u'<a name="%s"><h2>%s</h2></a><table>' % (key,key))
+            self.w(u'<h2><a name="%s">%s</a></h2><table>' % (key,key))
             for key, value in sorted(self.vreg[key].items()):
                 self.w(u'<tr><td>%s</td><td>%s</td></tr>' % (key, xml_escape(repr(value))))
             self.w(u'</table>')