summaryrefslogtreecommitdiff
path: root/docutils/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Text subclasses unicode, replace has_key with in operator.strank2008-07-231-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/abolish-userstring-haskey@5610 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added named constants, removed magic numbersgoodger2007-04-031-7/+14
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5040 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved uniq() to utils.pywiemann2007-03-121-0/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5018 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* remove circular importgoodger2007-02-121-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4912 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
* docstring correctiongoodger2006-05-091-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4527 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added East Asian double-width character support; thanks to Frank Bennett for ↵goodger2005-12-071-0/+26
| | | | | | 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
* fixed some docstringswiemann2005-06-271-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3592 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* merge trunk/docutils@3525 branches/blais_interrupt_render/docutils@HEAD ↵wiemann2005-06-261-7/+22
| | | | | | trunk/docutils git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3581 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* applied patch to fix broken set_conditions method;wiemann2005-05-291-1/+1
| | | | | | closing https://sourceforge.net/tracker/?func=detail&atid=422030&aid=1210637&group_id=38414 git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3408 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* str(Exception) doesn't work for anything but ASCII Exception texts, sowiemann2005-04-251-1/+1
| | | | | | | | | | | | | | '%s' % exception_instance is unsafe unless exception_instance.args contains only byte strings. The change in alltests.py is a first attempt to catch such cases where a str(Exception) is done with an Exception text which is not necessarily ASCII-only (i.e. with a unicode string in Exception.args), but since most input data (in the totest dicts) is passed in as byte strings, it doesn't catch much. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3253 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* typowiemann2005-04-211-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3235 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* clarified warninggoodger2005-04-171-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3227 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* restored utils.Reporter.set_conditions (with deprecation warning) for ↵goodger2005-04-161-0/+12
| | | | | | compatibility git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3223 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* merged reporter-categories branch into trunk: removed ↵goodger2005-04-051-87/+33
| | | | | | docutils.utils.Reporter.categories, docutils.utils.ConditionSet, and all references to them, to simplify error reporting git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3171 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* made issuing debug-system_messages conditionalwiemann2005-03-281-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3143 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved ``escape2null`` and ``unescape`` functions from ↵goodger2004-11-061-0/+25
| | | | | | docutils/parsers/rst/states.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2815 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* setting footnote_references to "superscript" or "brackets" now causeswiemann2004-09-301-0/+15
| | | | | | | footnote-reference-space to be trimmed or not, resp. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2681 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* improved DependencyList.__repr__; whitespacegoodger2004-09-301-8/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2672 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added close() method for DependencyListwiemann2004-09-291-0/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2670 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added get_stylesheet_reference(); added documentation for DependencyList;wiemann2004-09-281-1/+38
| | | | | | | made DependencyList.set_output() clear the list of already added dependencies git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2663 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added DependencyList classwiemann2004-09-251-0/+29
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2644 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* make warning_stream workwiemann2004-06-201-4/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2322 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* support for CSV directive implementationgoodger2004-06-171-0/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2299 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docstringsgoodger2004-06-171-0/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2291 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docstringsgoodger2004-06-171-0/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2290 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2004-04-271-1/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2002 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - allow RCS/CVS $keywords$ to be handled even if there is other text in thefdrake2004-03-301-1/+1
| | | | | | | | | | | relevant docinfo fields (closes SF bug #926198) - make the tests of the RCS/CVS $keyword$ handling less fragile in the face of non-default -k options (closes SF bug #921085) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1898 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add "level" attribute to SystemMessage exceptiongoodger2003-06-291-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1525 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2003-06-161-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1484 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Reporter keeps track of the highest level system message yet generated.goodger2003-06-161-0/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1478 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2003-06-081-6/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1401 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added support for encoding Reporter stderr output, and encoding error handlers.goodger2003-06-031-5/+17
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1371 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* beginnings of substitution case-sensitizinggoodger2003-03-271-4/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1235 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* real fixgoodger2003-01-101-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1094 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed bug in ``relative_path()``.goodger2003-01-101-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1077 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added docstringgoodger2002-11-211-0/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@971 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2002-11-081-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@917 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed a bug in ``relative_path()``; updated.goodger2002-10-181-14/+16
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@822 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Improved Reporter diagnostics (line numbers on almost all system messages). ↵goodger2002-10-081-21/+37
| | | | | | Changed Reporter method API slightly. Added ``get_source_line()`` function. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@772 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added support for improved diagnostics.goodger2002-09-241-7/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@712 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2002-09-111-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@665 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - Added an observer pattern to ``utils.Reporter`` to keep track ofgoodger2002-09-051-1/+31
| | | | | | | | system messages. - Fixed a bug in ``relative_path()``. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@628 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Finished changing "attribute" (or "attr") to "option" for directives/extensions.goodger2002-08-281-11/+11
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@600 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Changed "attribute" to "option" for directives/extensions.goodger2002-08-271-36/+36
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@597 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Renamed ``relative_uri`` to ``relative_path``, & fixed logic (thanks to ↵goodger2002-08-231-3/+3
| | | | | | Kenichi Sato). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@575 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added a ``source`` attribute to Reporter instances and ``system_message`` ↵goodger2002-08-211-4/+10
| | | | | | elements. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@568 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* bugfixgoodger2002-07-311-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@422 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``relative_uri(source, target)``.goodger2002-07-281-0/+23
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@396 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Changed format of directive attribute error.goodger2002-07-241-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@359 929543f6-e4f2-0310-98a6-ba3bd3dd1d04