Dolda2000 GitWeb
/
wrw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reimplemented the SP output formatters to hopefully work better and faster.
[wrw.git]
/
wrw
/
sp
/
xhtml.py
diff --git
a/wrw/sp/xhtml.py
b/wrw/sp/xhtml.py
index
f10d315
..
48ed41d
100644
(file)
--- a/
wrw/sp/xhtml.py
+++ b/
wrw/sp/xhtml.py
@@
-39,13
+39,14
@@
def head(title=None, css=None):
class htmlformatter(util.formatter):
allowshort = set([u"br", u"hr", u"img", u"input", u"meta", u"link"])
class htmlformatter(util.formatter):
allowshort = set([u"br", u"hr", u"img", u"input", u"meta", u"link"])
- def
element(self, el, **extra
):
+ def
shorttag(self, el
):
if el.name in self.allowshort:
if el.name in self.allowshort:
- super(htmlformatter, self).
element(el, **extra
)
+ super(htmlformatter, self).
shorttag(el
)
else:
else:
- self.longtag(el, **extra)
+ self.starttag(el)
+ self.endtag(el)
-class htmlindenter(util.indenter, htmlformatter):
+class htmlindenter(util.
text
indenter, htmlformatter):
pass
def forreq(req, tree):
pass
def forreq(req, tree):