diff options
| author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-08-16 23:01:34 +0000 |
|---|---|---|
| committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-08-16 23:01:34 +0000 |
| commit | 9a794feecb6bbb66d2bd136f02a6c3b9d62328c2 (patch) | |
| tree | 810fbfad6998f534349b7f6faafa6c86d71b78c6 /test/test_transforms | |
| parent | 2eaf9bb6916057e8ad7b11fc19fb653ebee97034 (diff) | |
| download | docutils-9a794feecb6bbb66d2bd136f02a6c3b9d62328c2.tar.gz | |
added writer_aux.Admonitions transform;
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
Diffstat (limited to 'test/test_transforms')
| -rwxr-xr-x | test/test_transforms/test_writer_aux.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/test_transforms/test_writer_aux.py b/test/test_transforms/test_writer_aux.py index f4c0b418a..b058dcfc8 100755 --- a/test/test_transforms/test_writer_aux.py +++ b/test/test_transforms/test_writer_aux.py @@ -49,6 +49,39 @@ totest['compound'] = ((writer_aux.Compound,), [ """], ]) +totest['admonitions'] = ((writer_aux.Admonitions,), [ +["""\ +.. note:: + + These are the note contents. + + Another paragraph. +""", +"""\ +<document source="test data"> + <admonition classes="note"> + <title> + Note + <paragraph> + These are the note contents. + <paragraph> + Another paragraph. +"""], +["""\ +.. admonition:: Generic + + Admonitions contents... +""", +"""\ +<document source="test data"> + <admonition classes="admonition-generic admonition"> + <title> + Generic + <paragraph> + Admonitions contents... +"""], +]) + if __name__ == '__main__': import unittest |
