summaryrefslogtreecommitdiff
path: root/docutils/statemachine.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix [ 2788716 ] reporting problems in included files.milde2010-04-261-11/+33
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6314 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* More fixes for reporting issues in included source files.milde2010-04-151-9/+21
| | | | | | | | | The following problems now correctly report the source file name and the line number in this file: admonition without title, section underline too short, no blank line after table, Unexpected section title. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6307 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* (partially) Fix reporting for problems in included files.milde2009-10-281-7/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6188 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Using a cache in the parsers state machine.milde2009-06-021-11/+4
| | | | | | Patch sent by Naoki INADA to docutils-devel giving around 25 % speedup. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5968 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Convert docutils to Python 3 (at least so that it runs the test suite.)gbrandl2009-04-011-5/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5889 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Prepare for python 3.0: minimize "types" module where possible (gbrandl).grubert2008-11-301-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5738 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merged abolish-userstring-haskey r5609:5616 to trunk.strank2008-07-281-5/+5
| | | | | | Backwards compatible changes for easier transition to py3.0. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5618 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use $Id$ instead of $Date$ and $Revision$;wiemann2006-05-211-4/+2
| | | | | | | | collapsed Author and Contact fields; use canonical email addresses for David and Felix; (I have reviewed the diff) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4564 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added East Asian double-width character support; thanks to Frank Bennett for ↵goodger2005-12-071-3/+28
| | | | | | inspiration on ``docutils.utils.east_asian_column_width()`` git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4152 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added trailing whitespace stripping to ``string2lines()``goodger2005-12-061-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4146 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* 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