1.1 --- a/moinformat/serialisers.py Sat Apr 29 17:47:03 2017 +0200
1.2 +++ b/moinformat/serialisers.py Sat Apr 29 18:20:55 2017 +0200
1.3 @@ -57,6 +57,9 @@
1.4 def end_listitem(self):
1.5 pass
1.6
1.7 + def rule(self, length):
1.8 + self.out("-" * length)
1.9 +
1.10 def text(self, s):
1.11 self.out(s)
1.12
1.13 @@ -95,6 +98,9 @@
1.14 def end_listitem(self):
1.15 self.out("</li>")
1.16
1.17 + def rule(self, length):
1.18 + self.out("<hr style='height: %dpt' />" % min(length, 10))
1.19 +
1.20 def text(self, s):
1.21 self.out(escape(s))
1.22