changeset 2865:ae24fa8ff4b2

Creole parser: renamed rule to separator for <hr>
author Radomir Dopieralski <moindev@sheep.art.pl>
date Mon, 24 Sep 2007 00:07:43 +0200
parents 1c0e2cdc2d82
children 2ac0fae11d15
files MoinMoin/parser/text_creole.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_creole.py	Mon Sep 24 00:04:46 2007 +0200
+++ b/MoinMoin/parser/text_creole.py	Mon Sep 24 00:07:43 2007 +0200
@@ -101,7 +101,7 @@
         char =  r'(?P<char> . )'
 
         # For the block elements:
-        separator = r'(?P<rule> ^ \s* ---- \s* $ )' # horizontal line
+        separator = r'(?P<separator> ^ \s* ---- \s* $ )' # horizontal line
         line = r'(?P<line> ^ \s* $ )' # empty line that separates paragraphs
         head = r'''(?P<head>
                 ^ \s*
@@ -285,9 +285,9 @@
     _image_target_repl = _image_repl
     _image_text_repl = _image_repl
 
-    def _rule_repl(self, groups):
+    def _separator_repl(self, groups):
         self.cur = self._upto(self.cur, ('document', 'section', 'blockquote'))
-        DocNode('rule', self.cur)
+        DocNode('separator', self.cur)
 
     def _item_repl(self, groups):
         bullet = groups.get('item_head', u'')
@@ -504,7 +504,7 @@
     def text_emit(self, node):
         return self.formatter.text(node.content or '')
 
-    def rule_emit(self, node):
+    def separator_emit(self, node):
         return self.formatter.rule()
 
     def paragraph_emit(self, node):