[Moin-devel] CVS: MoinMoin/formatter base.py,1.19,1.20 text_html.py,1.37,1.38 text_plain.py,1.15,1.16 text_xml.py,1.24,1.25

J?rgen Hermann jhermann at users.sourceforge.net
Sun Mar 17 03:04:07 EST 2002


Update of /cvsroot/moin/MoinMoin/formatter
In directory usw-pr-cvs1:/tmp/cvs-serv27278/MoinMoin/formatter

Modified Files:
	base.py text_html.py text_plain.py text_xml.py 
Log Message:
List processors on SystemInfo; more stable API (ability to check 
for in_pre)


Index: base.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/formatter/base.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** base.py	13 Feb 2002 21:13:52 -0000	1.19
--- base.py	17 Mar 2002 11:03:57 -0000	1.20
***************
*** 30,33 ****
--- 30,34 ----
          self.pagelinks = []
          self.in_p = 0
+         self.in_pre = 0
  
      def setPage(self, page):
***************
*** 88,92 ****
  
      def preformatted(self, on):
!         raise NotImplementedError
  
      def paragraph(self, on):
--- 89,93 ----
  
      def preformatted(self, on):
!         self.in_pre = on != 0
  
      def paragraph(self, on):

Index: text_html.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/formatter/text_html.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** text_html.py	11 Mar 2002 21:18:56 -0000	1.37
--- text_html.py	17 Mar 2002 11:03:57 -0000	1.38
***************
*** 124,127 ****
--- 124,128 ----
  
      def preformatted(self, on):
+         FormatterBase.preformatted(self, on)
          return ['<pre class="code">', '</pre>'][not on]
  

Index: text_plain.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/formatter/text_plain.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** text_plain.py	13 Feb 2002 21:13:53 -0000	1.15
--- text_plain.py	17 Mar 2002 11:03:57 -0000	1.16
***************
*** 80,83 ****
--- 80,84 ----
  
      def preformatted(self, on):
+         FormatterBase.preformatted(self, on)
          snip = '---%<'
          snip = snip + ('-' * (78 - len(snip)))

Index: text_xml.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/formatter/text_xml.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** text_xml.py	13 Mar 2002 21:00:23 -0000	1.24
--- text_xml.py	17 Mar 2002 11:03:57 -0000	1.25
***************
*** 113,117 ****
  
      def preformatted(self, on):
!         self.in_pre = on
          result = ''
          if self.in_p: result = self.paragraph(0)
--- 113,117 ----
  
      def preformatted(self, on):
!         FormatterBase.preformatted(self, on)
          result = ''
          if self.in_p: result = self.paragraph(0)





More information about the Moin-devel mailing list