| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
WikiElement --+
|
BlockElement --+
|
DefinitionDef
Processes definitions.
>>> definition = DefinitionDef('dd',':',[]) >>> mo1,mo2 = definition.regexp.finditer(":def1a\ndef1b\n:def2\n") >>> mo1.group(1), mo2.group(1) ('def1a\ndef1b', 'def2') >>> mo1.group(0), mo2.group(0) (':def1a\ndef1b\n', ':def2\n')
group(1) of the match object includes all lines from the defintion up to the next definition.
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Inherited from WikiElement | |||
|---|---|---|---|
|
|||
|
|||
|
|||
|
|||
| Inherited from BlockElement | |||
|---|---|---|---|
append_newline = TrueDetermines if newlines are appended to Element(s) during processing. |
|||
|
|||
|
Inherited from |
|||
|
|||
Constructor for WikiElement objects. Subclasses may have other keyword arguments.
|
The regular expression pattern that is compiled into self.regexp. The regular expression must consume the entire wiki element, including the tokens. For block elements, the newline on the last line must be consumed also. group(1) should normally be the entire string inside the tokens. If not, a custom _build method will be needed.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat May 31 01:15:29 2008 | http://epydoc.sourceforge.net |