summaryrefslogtreecommitdiff
path: root/docutils/statemachine.py
Commit message (Collapse)AuthorAgeFilesLines
* support for CSV directive implementationgoodger2004-06-171-0/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2299 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Renamed ``StringList.strip_indent`` to ``.trim_left``. Added ↵goodger2003-07-051-4/+15
| | | | | | ``StringList.get_2D_block``. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1568 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* prevent duplicate detailed error reporting except when debugginggoodger2003-06-291-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1524 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed slice handling for Python 2.3. Patch from (and thanks to) Fred Drake.goodger2003-01-011-10/+16
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1049 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``ViewList`` & ``StringList`` classes, to allow synchronized updating ↵goodger2002-11-081-101/+409
| | | | | | of parent lists from slices (child lists). ``extract_indented()`` becomes ``StringList.get_indented()``. Added ``StateMachine.insert_input()``. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@915 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Made "context" a parameter to ``StateMachine.run()``.goodger2002-10-301-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@866 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``strip_top`` parameter to ``StateMachineWS.get_first_known_indented``.goodger2002-10-021-4/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@746 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added support for the Observer pattern, triggered by input line changes.goodger2002-09-241-12/+39
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@710 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - Factored out ``State.add_initial_transitions()`` so it can begoodger2002-09-191-158/+169
| | | | | | | | | | | | | | | | | | | | extended. - Converted whitespace-specific "blank" and "indent" transitions from special-case code to ordinary transitions: removed ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` & ``ws_initial_transitions`` attributes. - Removed ``State.match_transition()`` after merging it into ``.check_line()``. - Added ``StateCorrection`` exception. - Added support for ``StateCorrection`` in ``StateMachine.run()`` (moved ``TransitionCorrection`` support there too.) - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise ``EOFError`` instead of ``IndexError``. - Added ``State.no_match`` method. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@691 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2002-07-041-1/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@248 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - In ``string2lines()``, changed whitespace normalizing translationgoodger2002-06-291-6/+3
| | | | | | | table to regexp; restores Python 2.0 compatibility with Unicode. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@226 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - Added support for input and output encodings and for internal Unicode support.goodger2002-06-281-1/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@220 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleaned up importsgoodger2002-05-301-1/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@160 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docstring fixgoodger2002-05-181-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@132 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - Added ``runtime_init`` method to ``StateMachine`` and ``State``.goodger2002-05-051-281/+300
| | | | | | | - Added underscores to improve many awkward names. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@82 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Initial revisiongoodger2002-04-201-0/+1076
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@18 929543f6-e4f2-0310-98a6-ba3bd3dd1d04