summaryrefslogtreecommitdiff
path: root/docutils/nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* allow node class tuples as traverse conditionwiemann2007-08-241-7/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5424 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed prune_subdocs... again.wiemann2007-08-241-7/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5423 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed bug with prune_subdocs in Node.traverse (will be tested in later ↵wiemann2007-08-241-3/+3
| | | | | | check-ins) git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5422 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* resolve indirect qualified targetswiemann2007-08-221-0/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5418 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added qualified references syntax;wiemann2007-08-201-3/+16
| | | | | | | added references.QualifiedReferences transform to resolve them; to do: add documentation, find bugs git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5414 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added prune_subdocs parameter to Node.traversewiemann2007-08-201-9/+22
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5412 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* avoid creation of duplicate ID's in sub-documentswiemann2007-08-171-5/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5405 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed accidentally checked-in integrity check; was for debugging onlywiemann2007-08-161-8/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5403 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* implemented simple version of multi-file output (no navigational aids though)wiemann2007-08-161-0/+8
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5402 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved responsibility for applying transforms from publisher towiemann2007-06-241-1/+18
| | | | | | Reader.read and Writer.write methods git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5266 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* reverted r5032; breaks Python 2.2 compatibilitywiemann2007-03-211-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5033 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced 'raw_unicode_escape' with 'ascii', 'backslashreplace' so we don't ↵wiemann2007-03-211-1/+1
| | | | | | get latin1 strings git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5032 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved Element.__str__ to Node.__str__ so Text has it too;wiemann2007-03-211-5/+12
| | | | | | made all Element and Text node convertible to unicode git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added support for PyPywiemann2006-07-081-2/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4649 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added StopTraversal exception in nodes, to interrupt the traversal cleanly.blais2006-06-281-13/+43
| | | | | | | | I needed this for my Nabu presentation layer, in order to be able to render just the first portion of my blog entries. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4641 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 ``docutils.nodes.document.__getstate__`` method, for pickling.goodger2006-04-021-0/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4487 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed markup bugs in docstrings; now works with Endogoodger2006-01-051-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4242 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed bug where values of list-valued attributes of elements originating ↵goodger2005-12-311-1/+6
| | | | | | from custom interpreted text roles (i.e., with custom classes) were being shared between element instances. Reported by Shmuel Zeigerman. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4236 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Re-introduced ``Targetable.indirect_reference_name``, for MoinMoin/reST ↵goodger2005-12-291-0/+6
| | | | | | compatibility (removed in r3124/r3129; noticed by Matthew Gilbert). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4234 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added end to Emacs stanzagoodger2005-11-081-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4005 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added the "container" element & directive, a generic containergoodger2005-10-281-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3963 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed more internal state (`document.anonymous_refs` andwiemann2005-10-111-10/+0
| | | | | | | `document.anonymous_targets`) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3939 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added Node.deepcopy(); fixed bug with doubly-indirect substitutionswiemann2005-10-111-6/+13
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3935 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* disallow targets inside substitution definitionswiemann2005-10-111-1/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3933 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* improved documentation about state transition tablewiemann2005-10-081-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3928 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added "Local Variables" block because most blocks are wrapped at columnwiemann2005-10-081-0/+7
| | | | | | 78 but Emacs uses column 70 by default git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3927 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``serial_escape`` function; escapes string values that are elements of ↵goodger2005-10-021-2/+6
| | | | | | a list, for serialization. Modified Docutils-XML writing (``Element._dom_node``) and pseudo-XML writing (``Element.starttag``) to use ``serial_escape``. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3915 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed Element.substitute to Element.replace_selfwiemann2005-09-261-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3909 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merged "transforms" branch into trunk.wiemann2005-09-201-1/+1
| | | | | | | | | | | | | | | | - Replaced ``default_transforms`` attribute of TransformSpec with ``get_transforms()`` method. - Added universal.Decorations and universal.ExposeInternals transforms as default transforms for all readers. - Added universal.Messages and universal.FilterMessages transforms as default transforms for all writers. - Added ``ReReader`` base class for readers that reread an existing document tree. - Added ``UnfilteredWriter`` base class for writers that pass the document tree on unchanged. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3892 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* cover two more cases:wiemann2005-09-111-4/+17
| | | | | | | update() is passed an empty new list; substitute() is trying to substitute a node for itself git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3869 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed update to update_basic_atts;wiemann2005-09-111-10/+7
| | | | | | added history entry git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3868 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added Element.substitute()wiemann2005-09-111-0/+11
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3866 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed Element.attr_defaults to list_attributes;wiemann2005-09-111-10/+22
| | | | | | | added Element.update() method git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3865 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added docstring for system_messagewiemann2005-07-071-0/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3669 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added docstringwiemann2005-07-071-0/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3668 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed document.internal_targets and document.external_targets;wiemann2005-06-291-12/+0
| | | | | | fixed bug (not sure yet if the code is clean -- needs refactoring) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3637 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* clarified docstrings; simplified codewiemann2005-06-271-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3611 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed usage of "copy" module; test suite runs 1.6 seconds faster nowwiemann2005-06-221-2/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3556 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed import of "inspect" module; takes 55 ms to import herewiemann2005-06-221-3/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3555 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved import of xml.dom.minidom into asdom methods; importing it takes 80 ms ↵wiemann2005-06-221-3/+6
| | | | | | here git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3554 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed "from __future__ import" statements and lambda expressionsgoodger2005-06-081-6/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3454 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added possibility to pass node classes to node.traverse()wiemann2005-06-051-0/+11
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3438 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added --id-prefix and --auto-id-prefix optionswiemann2005-05-211-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3358 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* corrected ``line`` superclassgoodger2005-05-021-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3281 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed unnecessary commentwiemann2005-04-261-3/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3259 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed reference to Element.attributes; let's access attributes consistentlywiemann2005-04-211-2/+2
| | | | | | | | (and shorter) via Element.__getitem__ (David, if you disagree, please feel free to revert the change without prior discussion) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3234 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added deprecation warning for obsolete Element.set_class methodgoodger2005-04-171-0/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3226 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added assert to make sure we aren't accidentally adding two classeswiemann2005-04-161-0/+1
| | | | | | in one string (because that wouldn't be noticed in HTML) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3225 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Element.attr_defaults needs to be deepcopiedgoodger2005-04-161-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3222 929543f6-e4f2-0310-98a6-ba3bd3dd1d04