Package lemon :: Package external :: Package Cheetah :: Package Utils :: Module Indenter :: Class Indenter
[show private | hide private]
[frames | no frames]

Class Indenter


A class that keeps track of the current indentation level.
.indent() returns the appropriate amount of indentation.

Method Summary
  __init__(self)
  dec(self)
decrement can only be applied to values greater zero...
  inc(self)
  indent(self, _default)
  off(self)
  on(self)
  pop(self)
the levestack can not become -1.
  push(self)
  setChar(self, _chars)
  setLevel(self, _level)
the leve can't be less than zero.

Method Details

dec(self)

decrement can only be applied to values greater zero
values below zero don't make any sense at all!

pop(self)

the levestack can not become -1. any attempt to do so
sets the level to 0!

setLevel(self, _level)

the leve can't be less than zero. any attempt to do so
sets the level automatically to zero!

Generated by Epydoc 2.0 on Mon Nov 10 15:08:04 2003 http://epydoc.sf.net