diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-06-28 15:42:01 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-06-28 15:42:01 +0000 |
commit | 9a939fa37e565573abb76951de00cfcca027020f (patch) | |
tree | 7b002a6af5f8d4d1afb71979694f1ff92e350753 /sandbox/html4trans/tools/textsamples.py | |
parent | 96eb2067a906c62e38ec1e37aa4b91cbcd1ed224 (diff) | |
download | docutils-9a939fa37e565573abb76951de00cfcca027020f.tar.gz |
Set up recommended directory structure, moving tools to 'tools/'
Merged the complete syntax sample test into check_html4trans.py
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5304 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/html4trans/tools/textsamples.py')
-rw-r--r-- | sandbox/html4trans/tools/textsamples.py | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/sandbox/html4trans/tools/textsamples.py b/sandbox/html4trans/tools/textsamples.py new file mode 100644 index 000000000..f2defcb7e --- /dev/null +++ b/sandbox/html4trans/tools/textsamples.py @@ -0,0 +1,125 @@ +#!/usr/bin/env python + +# Author: Guenter Milde +# Contact: +# Revision: $Revision$ +# Date: $Date$ +# Copyright: Licensed under the Academic Free License version 1.2 + +"""ReStructured Text samples for fast testing""" + +title = """\ +Title of the Document +===================== + +Subtitle +------------- +""" + +bibliographic_list = """\ + +:Author: G\. E\. Milde # escape fullstop to prevent recognision as enumeration +:Status: Work in progress +:field name: genric content + + in several paragraphs + +:Dedication: + + For impatient owners of slow computers. + +:abstract: + + This is a test document, containing at least one example of each + reStructuredText construct. + +""" + +table_of_contents = '\n.. contents::\n' + +admonitions = """ + +Admonitions +----------- + +.. admonition:: testme + + Admonition text, + + in two paragraphs. + +.. note:: + + This is a note + +.. warning:: + + Beware of red tape. +""" + +literal_block = """ + +Literal Blocks +-------------- + +Literal blocks are indicated with a double-colon (``::``) at the end of +the preceding paragraph. They can be indented:: + + if literal_block: + text = 'is left as-is' + spaces_and_linebreaks = 'are preserved' + markup_processing = None + +Or they can be quoted without indentation:: + +>> Great idea! +> +> Why didn't I think of that? + +""" + +line_block = """ + +Line Blocks +----------- + +This section tests line blocks. Line blocks are body elements which +consist of lines and other line blocks. Nested line blocks cause +indentation. + +| This is a line block. It ends with a blank line. +| New lines begin with a vertical bar ("|"). +| Line breaks and initial indent are significant, and preserved. +| Continuation lines are also possible. A long line that is intended + to wrap should begin with a space in place of the vertical bar. +| The left edge of a continuation line need not be aligned with + the left edge of the text above it. + +| This is a second line block. +| +| Blank lines are permitted internally, but they must begin with a "|". + +""" + +table = """ + +A Table +------- + +=== === +ABC DEF +--- --- + + 23 5 + 7 99 + +=== === + +""" + + +system_message = """ + +This link should `trigger a system message`_ as it has no defined target. + +""" |