summaryrefslogtreecommitdiff
path: root/docutils/transforms
Commit message (Collapse)AuthorAgeFilesLines
* Consistently use "utf-8" (not "utf8") in magic comment giving source encoding.milde2013-06-041-1/+1
| | | | | | | Fixes problems with Docutils installed in "virtualenv" https://sourceforge.net/p/docutils/patches/105/ git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7668 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3607029 ] traceback with embedded alias pointing to missing target.milde2013-03-071-4/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7624 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply [ 2714873 ] Fix for the overwritting of document attributes.milde2013-01-211-9/+25
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7595 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* smartquotes: Skip emtpy text tokens without updating the last character.milde2013-01-041-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7585 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* SmartQuotes transform: language-depended quote characters.milde2012-11-261-19/+59
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7540 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Smartquotes: correct "educating" of quotes around inline markup.milde2012-11-181-12/+35
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7537 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* More cases where we do not want to "educate" quotes.milde2012-10-181-1/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7531 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add SmartQuotes transform for typographic quotes and dashes.milde2012-10-161-1/+23
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7530 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleanup: Use True/False for boolean valuesmilde2012-01-192-7/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7320 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Do not fail, if the specified langauage is not supported by Docutils,milde2010-09-283-4/+5
| | | | | | | warn and fall back to English. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6433 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 2788716 ] reporting problems in included files.milde2010-04-261-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6314 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Hack around not existing refname attribute. Test with docs/dev/todo.txt, ↵docutils-0.6@6167grubert2009-10-111-1/+4
| | | | | | see. |donate| git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6167 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 1627229 ] hyperlink references in substitutions.milde2009-10-061-0/+5
| | | | | | | Links in substitutions failed to convert, as the substitution directive did not note the refname. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6155 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Raise priority of StripClasses transform milde2009-09-031-1/+1
| | | | | | to exclude stripped sections from the toc git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6112 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* latex2e writer: improved native section numbering and ToCmilde2009-08-061-13/+7
| | | | | | | | | + Support for LaTeX generated ToC also with unnumbered sections. + If "sectnum_xform" is False, the "sectnum" directive triggers section numbering by LaTeX. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6073 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Better conformance to Docutils specifications with "use_latex_toc".milde2009-06-261-13/+22
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5998 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Support "depth" argument of "contents" directive also with "use-latex-toc"milde2009-06-171-4/+17
| | | | | | | The docutils.transforms.parts.Contents transform is made aware of use_latex_toc, and does the right thing for LaTeX. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5989 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fix typomilde2009-05-141-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5947 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merged abolish-userstring-haskey r5609:5616 to trunk.strank2008-07-283-18/+18
| | | | | | 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
* adjusted name and email addresswiemann2007-05-311-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5174 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved uniq() to utils.pywiemann2007-03-121-9/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5018 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed doc-string -- transforms are not reader-specific anymorewiemann2007-03-011-4/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4975 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``--strip-elements-with-class`` and ``--strip-class`` options ↵goodger2007-02-121-2/+36
| | | | | | (``strip_elements_with_classes`` and ``strip_classes`` settings) and ``StripClassesAndElements`` transform. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4913 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* cleaned up build_contents code (not worth a test case or history entry ↵wiemann2007-01-221-6/+1
| | | | | | though because it occurs for corner cases involving empty section titles) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4891 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* corrected docstringwiemann2006-08-171-6/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4691 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added writer_aux.Admonitions transform;wiemann2006-08-161-2/+40
| | | | | | | | use it in html4css1 and newlatex2e; changed priority of writer_aux.Compound transform from 810 to 910; added (basic) admonition support to newlatex2e writer git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4687 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use $Id$ instead of $Date$ and $Revision$;wiemann2006-05-219-36/+18
| | | | | | | | 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
* support for new python.org and pep2pyramid.pygoodger2006-03-231-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4443 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed markup bugs in docstrings; now works with Endogoodger2006-01-051-0/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4242 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed bug with circular substitution definitions that put Docutils into an ↵goodger2005-12-281-3/+35
| | | | | | infinite loop. Circular substitution definitions are now detected & reported. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4233 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added the universal.StripComments transform, the "strip_comments" setting, ↵goodger2005-12-121-0/+15
| | | | | | and the --strip-comments/--leave-comments options. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4183 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* keep "Authors" field name, no matter how many authors listedgoodger2005-12-111-3/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4173 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* merged branches/s5 changes r4011:4155 into trunk/docutilsgoodger2005-12-081-2/+13
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4156 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed Subversion Date keyword parsingwiemann2005-11-111-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4044 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed the DocInfo transform to handle SVN-style expansion of the "Date" ↵goodger2005-11-111-2/+2
| | | | | | keyword (this was actually a bug, not a to-do; the correct behavior was specified in the docs) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4042 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed more internal state (`document.anonymous_refs` andwiemann2005-10-111-19/+25
| | | | | | | `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-39/+40
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3935 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed Element.substitute to Element.replace_selfwiemann2005-09-266-15/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3909 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added docutils/writers/support/ directory and removed tools/stylesheets/; ↵goodger2005-09-251-30/+0
| | | | | | updated defaults; removed docutils/transforms/html.py (no longer needed); removed ``_stylesheet_required`` internal setting; updated setup.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3901 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* changed DanglingReferences priority back to 850wiemann2005-09-221-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3897 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merged "transforms" branch into trunk.wiemann2005-09-201-18/+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
* fixed bug with expose_internals setting and Text nodes (exposed by the ↵goodger2005-09-151-1/+4
| | | | | | "rawsource" internal attribute) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3877 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added writer_aux module containing Compound transform,wiemann2005-09-111-0/+52
| | | | | | which flattens the compound paragraph structure git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3872 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced node.parent.replace(node, new) constructs with node.substitute(new)wiemann2005-09-115-14/+14
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3870 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced hack with clean handling of unreferenced anonymous targetswiemann2005-08-281-5/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3841 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* simplified FilterMessages transformwiemann2005-07-071-12/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3665 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* separated default (universal) transforms into two stages so that nowiemann2005-07-071-9/+12
| | | | | | | | | | | | transform is applied twice; do not delete document.transformer in publish_doctree (Martin, this may be important for the pickle writer -- you may need to delete document.transformer); regenerate reporter object unconditionally; do so in publish_from_doctree, not the doctree reader; added tests; I will post about all that on Docutils-develop in one or two days git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3663 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* sorted transform declarations by prioritywiemann2005-07-061-17/+17
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3661 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed TestMessages priority to conform to docswiemann2005-07-061-1/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3660 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed universal.FinalChecks to references.DanglingReferences;wiemann2005-07-053-79/+75
| | | | | | changed priority to 680 git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3659 929543f6-e4f2-0310-98a6-ba3bd3dd1d04