[Moin-devel] CVS: MoinMoin/parser wiki.py,1.80,1.81

J?rgen Hermann jhermann at users.sourceforge.net
Wed Feb 20 11:33:13 EST 2002


Update of /cvsroot/moin/MoinMoin/parser
In directory usw-pr-cvs1:/tmp/cvs-serv6466/parser

Modified Files:
	wiki.py 
Log Message:
Added config.allow_numeric_entities


Index: wiki.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/parser/wiki.py,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -r1.80 -r1.81
*** wiki.py	19 Feb 2002 23:08:26 -0000	1.80
--- wiki.py	20 Feb 2002 19:32:34 -0000	1.81
***************
*** 396,399 ****
--- 396,405 ----
  
  
+     def _ent_numeric_repl(self, word):
+         """Handle numeric SGML entities."""
+         self._check_p()
+         return self.formatter.rawHTML(word)
+ 
+ 
      def _li_repl(self, match):
          """Handle bullet lists."""
***************
*** 746,749 ****
--- 752,757 ----
          if config.backtick_meta:
              rules = rules + r'|(?P<tt_bt>`.*?`)'
+         if config.allow_numeric_entities:
+             rules = r'(?P<ent_numeric>&#\d{1,5};)|' + rules
  
          scan_re = re.compile(rules)





More information about the Moin-devel mailing list