Allow shorting of meta and link tags.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 27 Aug 2012 04:16:50 +0000 (06:16 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 27 Aug 2012 04:16:50 +0000 (06:16 +0200)
wrw/sp/xhtml.py

index abf4b96..928dcd9 100644 (file)
@@ -30,7 +30,7 @@ def head(title=None, css=None):
     return head
 
 class htmlformatter(util.formatter):
-    allowshort = set([u"br", u"hr", u"img", u"input"])
+    allowshort = set([u"br", u"hr", u"img", u"input", u"meta", u"link"])
     def element(self, el, **extra):
         if el.name in self.allowshort:
             super(htmlformatter, self).element(el, **extra)