| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
WikiElement --+
|
ListItem
Matches the current list item.
Everything up to the next same-level list item is matched.
>>> list_item = ListItem('li',[],'#*') >>> mo = list_item.regexp.search("*one\n**one.1\n**one.2\n*two\n") >>> mo.group(2) 'one\n**one.1\n**one.2' >>> mo.group(0) '*one\n**one.1\n**one.2'
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Inherited from WikiElement | |||
|---|---|---|---|
|
|||
|
|||
|
|||
append_newline = FalseDetermines if newlines are appended to Element(s) during processing. |
|||
|
|||
|
Inherited from |
|||
|
|||
Constructor for list items.
|
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.
|
Returns a genshi Element that has self.tag as the outermost tag. This methods if called exclusively by _process
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat May 31 01:15:29 2008 | http://epydoc.sourceforge.net |