Home | Trees | Index | Help |
|
---|
Package docutils :: Package parsers :: Package rst :: Module states :: Class Line |
|
State
--+ |StateWS
--+ |RSTState
--+ |Text
--+ |SpecializedText
--+ | Line
Method Summary | |
---|---|
Transition marker. | |
Transition marker at end of section or document. | |
Potential over- & underlined title. | |
short_overline(self,
context,
blocktext,
lineno,
lines)
| |
state_correction(self,
context,
lines)
| |
Potential over- & underlined title. | |
underline(self,
match,
context,
next_state)
| |
Inherited from SpecializedText | |
Not a compound element member. | |
Inherited from Text | |
| |
Return a list of nodes. | |
Return a definition_list's term and optional classifier. | |
Inherited from RSTState | |
Initialize a StateSM object; extends State.__init__() . | |
Called at beginning of file. | |
Check for illegal structure: empty section, misplaced transitions. | |
Check for a valid subsection header. | |
Jump to input line abs_line_offset , ignoring jumps past the end. | |
Return 2 lists: nodes (text and inline elements), and system_messages. | |
Create a new StateMachine rooted at node and run it over the input
block . | |
Create a new StateMachine rooted at node and run it over the input
block . | |
Append new subsection to document tree. | |
Override StateWS.no_match to generate a system message. | |
Return a list (paragraph & messages) & a boolean: literal_block next? | |
Initialize this State before running the state machine; called from
self.state_machine.run() . | |
Check for a valid subsection and create one if it checks out. | |
| |
| |
Inherited from StateWS | |
Add whitespace-specific transitions before those defined in subclass. | |
Handle an indented text block (first line's indent known). | |
Handle a known-indent text block. | |
Inherited from State | |
Add a transition to the start of the transition list. | |
Add a list of transitions to the start of the transition list. | |
Make & return a transition tuple based on name . | |
Return a list of transition names and a transition mapping. | |
A "do nothing" transition method. | |
Remove a transition by name . | |
Remove circular references to objects no longer required. |
Class Variable Summary | |
---|---|
int |
eofcheck = 1 |
Inherited from Text | |
list |
initial_transitions = [('underline', 'Body'), ('text', '...
|
dict |
patterns = {'indent': ' +', 'blank': ' *$', 'text': '', ...
|
Inherited from StateWS | |
NoneType |
indent_sm = None |
NoneType |
indent_sm_kwargs = None |
NoneType |
known_indent_sm = None |
NoneType |
known_indent_sm_kwargs = None |
tuple |
ws_initial_transitions = ('blank', 'indent')
|
dict |
ws_patterns = {'indent': ' +', 'blank': ' *$'}
|
Inherited from State | |
NoneType |
nested_sm = None |
NoneType |
nested_sm_kwargs = None |
Method Details |
---|
blank(self, match, context, next_state)Transition marker. |
eof(self, context)Transition marker at end of section or document. |
indent(self, match, context, next_state)Potential over- & underlined title. |
text(self, match, context, next_state)Potential over- & underlined title. |
Class Variable Details |
---|
eofcheck
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Jul 22 05:31:48 2003 | http://epydoc.sf.net |