summaryrefslogtreecommitdiff
path: root/docutils/test
Commit message (Collapse)AuthorAgeFilesLines
* reverted last check-in; it was committed to "transforms" branchwiemann2005-09-182-182/+182
| | | | | | | | | instead of trunk, and it causes conflicts when merging to trunk; I'll redo that change after merging the "transforms" branch into the trunk in order to avoid unnecessary merge-work git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/transforms@3887 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* changed DanglingReferences priority back to 850wiemann2005-09-182-182/+182
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/transforms@3886 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* incorporated David's suggestions for the transforms branchwiemann2005-09-172-10/+121
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/transforms@3884 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Turned components.Filter into components.WriterFilter. When thewiemann2005-08-202-121/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filter transform is run, the only type of component which has not yet been used *and* has the notion of a "format" is the writer. I (Felix) cannot imagine a use case where components.Filter would filter, say, parser-specific nodes. Thus, it's possible to make components.Filter specific to writers without loss of functionality. Added FormatSpecific node. Made "meta" and "raw" subclasses of nodes.FormatSpecific. nodes.Node.traverse: When a class is passed as first argument, do not check if it is a subclass of nodes.Node. This is necessary because some node classes (like nodes.FormatSpecific) aren't subclasses of nodes.Node. directives.meta: Do not insert pending nodes but rather the meta node directly. components.WriterFilter does no longer work on pending nodes but traverses the document tree looking for FormatSpecific nodes. Removed format-handling code for raw node from writers. This is now done by the WriterFilter transform. Removed test/test_transforms/test_filter.py; that test isn't usable for testing the WriterFilter transform. components.WriterFilter is automatically tested in the functional tests; that's enough for now. Updated docs/ref/transforms.txt. Partially updated docs/peps/pep-0258.txt. git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/transforms@3825 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed superfluous error messagewiemann2005-08-172-12/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3813 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* committed too early; sorrywiemann2005-08-151-25/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3811 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* made Null writer "support" all formatswiemann2005-08-151-0/+25
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3810 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* restored a bug (removed in r3807) which lingers; added a commented-out test ↵goodger2005-08-151-0/+45
| | | | | | case for said bug; removed a bogus bug git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3809 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed bug with indirect substitutions; seems to be fixedwiemann2005-08-141-0/+25
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3807 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed enumerated list bug (SF#1254145)goodger2005-08-101-0/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3789 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed test case (no settings_spec)wiemann2005-07-151-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3760 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* more precise error messagewiemann2005-07-151-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3759 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added simple use case test for publishing document as parts.blais2005-07-081-1/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3675 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* do not return parts dictionary in publish_from_doctree;wiemann2005-07-081-5/+3
| | | | | | | you could use publish_parts for that, I think, and returning a tuple unnecessarily complicates the interface git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3671 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* separated default (universal) transforms into two stages so that nowiemann2005-07-071-18/+60
| | | | | | | | | | | | 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@3663 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved comparison methods up to StandardTestCasewiemann2005-07-061-23/+23
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3662 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed universal.FinalChecks to references.DanglingReferences;wiemann2005-07-054-263/+230
| | | | | | changed priority to 680 git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3659 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved expose_internals logic out of FinalChecks into awiemann2005-07-052-1/+42
| | | | | | separate transform, universal.ExposeInternals git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3658 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved transition transform logic from universal.FinalChecks towiemann2005-07-052-282/+308
| | | | | | a separate transform, misc.Transitions git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3657 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* revert docutils.writers.null.Writer.output to None, now with ↵goodger2005-07-022-9/+14
| | | | | | docutils.io.Output and test support git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3646 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* improved cloaking mechanismwiemann2005-07-011-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3644 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed duplicate tests; wrapped lineswiemann2005-06-301-11/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3640 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Py21 compatibility fixwiemann2005-06-301-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3639 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed bug introduced in doctree reader, added pickle test back in.blais2005-06-301-1/+47
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3638 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed document.internal_targets and document.external_targets;wiemann2005-06-291-0/+18
| | | | | | fixed bug (not sure yet if the code is clean -- needs refactoring) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3637 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* implemented units for image widths; implemented language-support (e.g. for ↵wiemann2005-06-291-1/+2
| | | | | | hyphenation) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3635 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedgoodger2005-06-291-8/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3633 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added test for publish_from_doctreewiemann2005-06-291-2/+11
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3625 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* converted to real multi-line literal strings for readabilitygoodger2005-06-291-3/+28
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3623 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* move metadata title into document['title']wiemann2005-06-294-24/+21
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3621 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``_stylesheet_required`` internal setting, ↵goodger2005-06-284-1/+5
| | | | | | docutils.transforms.html.StylesheetCheck transform, docs, tests, and support. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3617 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added assert to make sure the kwargs get passed to apply()wiemann2005-06-271-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3613 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved & renamed to remove overlap between file & directory/packagegoodger2005-06-271-0/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3610 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Pythonicized kwargs --dump-transformsgoodger2005-06-271-5/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3609 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added assert to get a helpful error message when passing thingswiemann2005-06-271-0/+2
| | | | | | like "writer='html'" to publish_* git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3606 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* pass kwargs as single parameter to add_transform;wiemann2005-06-271-3/+5
| | | | | | to not pass on the kwargs to Transform.__init__ but to Transform.apply git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3604 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added note about slowdownwiemann2005-06-271-1/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3603 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed test_publish_doctree.py to more generic test_publisher.py; polishedwiemann2005-06-271-6/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3602 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced data argument to Transform constructor with **kwargs;wiemann2005-06-271-0/+39
| | | | | | | | | | Transform.data contains now the kwargs dictionary; added transform instance to Transformer.applied tuples again -- this shouldn't cause problems with pickling because the Transformer isn't pickled; if it does cause any problems, please follow up on Docutils-develop git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3596 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* publish_doctree now returns only the doctree, not an empty (useless)wiemann2005-06-261-2/+1
| | | | | | | "parts" dictionary; polished git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3587 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* oh, publish_doctree was not a duplicate... 8-)wiemann2005-06-261-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3586 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed duplicate publish_doctree method;wiemann2005-06-261-3/+3
| | | | | | renamed publish_from_doctree to publish_doctree git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3585 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* merge trunk/docutils@3525 branches/blais_interrupt_render/docutils@HEAD ↵wiemann2005-06-261-0/+50
| | | | | | trunk/docutils git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3581 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* executablegoodger2005-06-241-0/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3574 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* separated different types of testsgoodger2005-06-232-20/+37
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3570 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved import to guarded areagoodger2005-06-231-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3569 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed docutils.frontend._globally_deactivate_config_files (reverting much ↵goodger2005-06-233-11/+13
| | | | | | of rev. 3511), since it duplicates settings._disable_config functionality git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3567 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* again a broken test; I should really rerun the test suite before committing ↵wiemann2005-06-211-1/+1
| | | | | | changes git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3550 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* issue a warning rather than an error when no stylesheet is given;wiemann2005-06-211-1/+1
| | | | | | default for "stylesheet" is now None, not -1 git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3549 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed testswiemann2005-06-202-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3548 929543f6-e4f2-0310-98a6-ba3bd3dd1d04