summaryrefslogtreecommitdiff
path: root/docutils/transforms/misc.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports.milde2022-03-051-1/+1
| | | | | | flake8 rule F401 git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9037 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Avoid line break after binary operator.milde2022-03-051-9/+9
| | | | | | | | | Breaking before binary operators is the recommended style in PEP 8 (changed in April 2016). flake8 rule W504 git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9035 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Node.traverse() returns a list again to restore backwards compatibility.milde2021-11-111-1/+1
| | | | | | | | | | | | | Although the documented API only promised an "iterable" as return value, the implementation returned a list. Because Sphinx < 4.0.0 relies on this and Sphinx < 3.5.4 places no upper limit to the Docutils dependency, this led to many errors "in the wild". Fixes bug #431. New method Node.findall(): like Node.traverse() but returns an iterator. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8885 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 2788716 ] reporting problems in included files.milde2010-04-261-2/+3
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@6314 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: https://svn.code.sf.net/p/docutils/code/trunk/docutils@4564 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed Element.substitute to Element.replace_selfwiemann2005-09-261-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@3909 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced node.parent.replace(node, new) constructs with node.substitute(new)wiemann2005-09-111-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@3870 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved expose_internals logic out of FinalChecks into awiemann2005-07-051-21/+22
| | | | | | separate transform, universal.ExposeInternals git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@3658 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved transition transform logic from universal.FinalChecks towiemann2005-07-051-0/+75
| | | | | | a separate transform, misc.Transitions git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@3657 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed nodes.Element.set_class() method;wiemann2005-04-021-2/+1
| | | | | | | | | | | directives.class_option now returns a *list* of classes; added test for :figclass: option of figure directive; the raw role's :format: option is now "unchanged", not "class_option"; some fixes: the :class: option should now always be propagated correctly from directives git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@3155 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* class directive now skips system_messageswiemann2004-10-241-1/+2
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@2766 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed bug when multiple "class" directives are appliedgoodger2004-09-081-1/+8
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@2561 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``ClassAttribute`` to support the "class" directive.goodger2003-05-241-0/+29
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@1334 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Miscellaneous transforms.goodger2002-12-071-0/+33
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@1004 929543f6-e4f2-0310-98a6-ba3bd3dd1d04