#!/usr/bin/env python # Author: Guenter Milde # Contact: # Revision: $Revision: 5304 $ # Date: $Date: 2007-06-28 17:42:01 +0200 (Do, 28. Jun 2007) $ # 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. """