MoinLight

Change of moinformat/serialisers.py

15:81089c4cb6eb
moinformat/serialisers.py
     1.1 --- a/moinformat/serialisers.py	Sun Apr 30 01:43:33 2017 +0200
     1.2 +++ b/moinformat/serialisers.py	Sun Apr 30 17:59:52 2017 +0200
     1.3 @@ -44,12 +44,11 @@
     1.4          if level:
     1.5              out("}" * level)
     1.6  
     1.7 -    def start_block(self, final):
     1.8 +    def start_block(self):
     1.9          pass
    1.10  
    1.11 -    def end_block(self, final):
    1.12 -        if not final:
    1.13 -            self.out("\n")
    1.14 +    def end_block(self):
    1.15 +        pass
    1.16  
    1.17      def start_heading(self, level, extra, pad):
    1.18          self.out(extra + "=" * level + pad)
    1.19 @@ -63,6 +62,9 @@
    1.20      def end_listitem(self, indent, marker):
    1.21          pass
    1.22  
    1.23 +    def break_(self):
    1.24 +        self.out("\n")
    1.25 +
    1.26      def rule(self, length):
    1.27          self.out("-" * length)
    1.28  
    1.29 @@ -92,10 +94,10 @@
    1.30      def end_region(self, level, indent, type):
    1.31          self.out("</span>")
    1.32  
    1.33 -    def start_block(self, final):
    1.34 +    def start_block(self):
    1.35          self.out("<p>")
    1.36  
    1.37 -    def end_block(self, final):
    1.38 +    def end_block(self):
    1.39          self.out("</p>")
    1.40  
    1.41      def start_heading(self, level, extra, pad):
    1.42 @@ -110,6 +112,9 @@
    1.43      def end_listitem(self, indent, marker):
    1.44          self.out("</li>")
    1.45  
    1.46 +    def break_(self):
    1.47 +        pass
    1.48 +
    1.49      def rule(self, length):
    1.50          self.out("<hr style='height: %dpt' />" % min(length, 10))
    1.51