docs/userguide/ch6_tables.py
branchpy33
changeset 3794 398ea04239b5
parent 3790 2d62ae94f4cb
child 4197 23596473c5b5
equal deleted inserted replaced
3793:cc3f9cc828f7 3794:398ea04239b5
   422 class XPreformatted(Paragraph):
   422 class XPreformatted(Paragraph):
   423     def __init__(self, text, style, bulletText = None, frags=None, caseSensitive=1):
   423     def __init__(self, text, style, bulletText = None, frags=None, caseSensitive=1):
   424         self.caseSensitive = caseSensitive
   424         self.caseSensitive = caseSensitive
   425         if maximumLineLength and text:
   425         if maximumLineLength and text:
   426             text = self.stopLine(text, maximumLineLength, splitCharacters)
   426             text = self.stopLine(text, maximumLineLength, splitCharacters)
   427         cleaner = lambda text, dedent=dedent: string.join(_dedenter(text or '',dedent),'')
   427         cleaner = lambda text, dedent=dedent: ''.join(_dedenter(text or '',dedent))
   428         self._setup(text, style, bulletText, frags, cleaner)
   428         self._setup(text, style, bulletText, frags, cleaner)
   429 '''
   429 '''
   430 t=Preformatted(text,normalStyle,maxLineLength=60, newLineChars='> ')
   430 t=Preformatted(text,normalStyle,maxLineLength=60, newLineChars='> ')
   431 """)
   431 """)
   432 heading2("""$XPreformatted(text, style, bulletText=None, dedent=0, frags=None)$""")
   432 heading2("""$XPreformatted(text, style, bulletText=None, dedent=0, frags=None)$""")