fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae0c7dc
)
Tabele
author
Marcin Koziej
<mkoziej@ksi.(none)>
Wed, 30 Jan 2013 10:16:28 +0000
(11:16 +0100)
committer
Marcin Koziej
<mkoziej@ksi.(none)>
Wed, 30 Jan 2013 10:16:28 +0000
(11:16 +0100)
librarian/pyhtml.py
patch
|
blob
|
history
diff --git
a/librarian/pyhtml.py
b/librarian/pyhtml.py
index
cba283b
..
db40909
100644
(file)
--- a/
librarian/pyhtml.py
+++ b/
librarian/pyhtml.py
@@
-131,6
+131,22
@@
class EduModule(Xmill):
else:
return '<li>', '</li>'
else:
return '<li>', '</li>'
+
+ def handle_podpis(self, element):
+ return u"""<div class="caption">""", u"</div>"
+
+ def handle_tabela(self, element):
+ has_frames = int(element.attrib.get("ramki", "0"))
+ if has_frames: frames_c = "framed"
+ else: frames_c = ""
+ return u"""<table class="%s">""" % frames_c, u"</table>"
+
+ def handle_wiersz(self, element):
+ return u"<tr>", u"</tr>"
+
+ def handle_kol(self, element):
+ return u"<td>", u"</td>"
+
def handle_rdf__RDF(self, _):
# ustal w opcjach rzeczy :D
return
def handle_rdf__RDF(self, _):
# ustal w opcjach rzeczy :D
return