Commits

Anonymous committed a5060c6

Minor improvements of MediaWiki expanders

Comments (0)

Files changed (1)

czechtile/expanders/mediawiki.py

 
 class Odstavec(CzechtileExpander):
     def expand(self, node, format, node_map):
-        return self.expand_with_content(node, format, node_map, u'', u'\n\n')
+        return self.expand_with_content(node, format, node_map, u'\n', u'\n')
 
 class NeformatovanyText(CzechtileExpander):
     def expand(self, node, format, node_map):
         res = self.expand_with_content(node, format, node_map)
         res = u''.join([token + r + u'\n' for r in res.split('\n') if r])
         if not isinstance(node.parent, nodes.List):
-            res = '\n\n' + res
+            res = '\n' + res
         return res
 
 class ListItem(CzechtileExpander):