~ubuntu-branches/ubuntu/jaunty/python-docutils/jaunty

« back to all changes in this revision

Viewing changes to test/test_readers/test_pep/test_inline_markup.py

  • Committer: Bazaar Package Importer
  • Author(s): martin f. krafft
  • Date: 2006-07-10 11:45:05 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060710114505-otkhqcslevewxmz5
Tags: 0.4-3
Added build dependency on python-central (closes: #377580).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Author: David Goodger
4
4
# Contact: goodger@users.sourceforge.net
5
 
# Revision: $Revision: 1.6 $
6
 
# Date: $Date: 2004/03/23 23:43:53 $
 
5
# Revision: $Revision: 3129 $
 
6
# Date: $Date: 2005-03-26 17:21:28 +0100 (Sat, 26 Mar 2005) $
7
7
# Copyright: This module has been placed in the public domain.
8
8
 
9
9
"""
30
30
<document source="test data">
31
31
    <paragraph>
32
32
        See \n\
33
 
        <reference refuri="pep-0287.html">
 
33
        <reference refuri="http://www.python.org/peps/pep-0287.html">
34
34
            PEP 287
35
35
         (
36
 
        <reference refuri="pep-0287.html">
 
36
        <reference refuri="http://www.python.org/peps/pep-0287.html">
37
37
            pep-0287.txt
38
38
        ),
39
39
        and \n\
61
61
    <paragraph>
62
62
        References split across lines:
63
63
    <paragraph>
64
 
        <reference refuri="pep-0287.html">
 
64
        <reference refuri="http://www.python.org/peps/pep-0287.html">
65
65
            PEP
66
66
            287
67
67
    <paragraph>
79
79
    <paragraph>
80
80
        Test PEP-specific implicit references before a URL:
81
81
    <paragraph>
82
 
        <reference refuri="pep-0287.html">
 
82
        <reference refuri="http://www.python.org/peps/pep-0287.html">
83
83
            PEP 287
84
84
         (
85
85
        <reference refuri="http://www.python.org/peps/pep-0287.html">
96
96
For *completeness*, _`let's` ``test`` **other** forms_
97
97
|of| `inline markup` [*]_.
98
98
 
99
 
.. [*] See http://docutils.sf.net/spec/rst/reStructuredText.html.
 
99
.. [*] See http://docutils.sf.net/docs/ref/rst/restructuredtext.html.
100
100
""",
101
101
"""\
102
102
<document source="test data">
105
105
        <emphasis>
106
106
            completeness
107
107
        , \n\
108
 
        <target id="let-s" name="let's">
 
108
        <target ids="let-s" names="let's">
109
109
            let's
110
110
         \n\
111
111
        <literal>
123
123
        <title_reference>
124
124
            inline markup
125
125
         \n\
126
 
        <footnote_reference auto="*" id="id1">
 
126
        <footnote_reference auto="*" ids="id1">
127
127
        .
128
 
    <footnote auto="*" id="id2">
 
128
    <footnote auto="*" ids="id2">
129
129
        <paragraph>
130
130
            See \n\
131
 
            <reference refuri="http://docutils.sf.net/spec/rst/reStructuredText.html">
132
 
                http://docutils.sf.net/spec/rst/reStructuredText.html
 
131
            <reference refuri="http://docutils.sf.net/docs/ref/rst/restructuredtext.html">
 
132
                http://docutils.sf.net/docs/ref/rst/restructuredtext.html
133
133
            .
134
134
"""],
135
135
]