~ubuntu-branches/ubuntu/dapper/python-docutils/dapper

« back to all changes in this revision

Viewing changes to test/test_parsers/test_rst/test_line_blocks.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-12-13 13:47:41 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213134741-fhuh5tq3n346q1oj
Tags: 0.3.9-0.1ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/env python
 
1
#! /usr/bin/python
2
2
 
3
3
# Author: David Goodger
4
4
# Contact: goodger@python.org
5
 
# Revision: $Revision: 1.1 $
6
 
# Date: $Date: 2004/10/05 01:22:40 $
 
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
"""
246
246
"""\
247
247
<document source="test data">
248
248
    <paragraph>
249
 
        <problematic id="id2" refid="id1">
 
249
        <problematic ids="id2" refid="id1">
250
250
            |
251
251
        This is not
252
 
        <problematic id="id4" refid="id3">
 
252
        <problematic ids="id4" refid="id3">
253
253
            |
254
254
        a line block
255
 
    <system_message backrefs="id2" id="id1" level="2" line="1" source="test data" type="WARNING">
 
255
    <system_message backrefs="id2" ids="id1" level="2" line="1" source="test data" type="WARNING">
256
256
        <paragraph>
257
257
            Inline substitution_reference start-string without end-string.
258
 
    <system_message backrefs="id4" id="id3" level="2" line="1" source="test data" type="WARNING">
 
258
    <system_message backrefs="id4" ids="id3" level="2" line="1" source="test data" type="WARNING">
259
259
        <paragraph>
260
260
            Inline substitution_reference start-string without end-string.
261
261
    <line_block>
265
265
        <paragraph>
266
266
            Line block ends without a blank line.
267
267
    <paragraph>
268
 
        <problematic id="id6" refid="id5">
 
268
        <problematic ids="id6" refid="id5">
269
269
            |
270
270
        incomplete line block.
271
 
    <system_message backrefs="id6" id="id5" level="2" line="5" source="test data" type="WARNING">
 
271
    <system_message backrefs="id6" ids="id5" level="2" line="5" source="test data" type="WARNING">
272
272
        <paragraph>
273
273
            Inline substitution_reference start-string without end-string.
274
274
"""],
281
281
    <line_block>
282
282
        <line>
283
283
            Inline markup \n\
284
 
            <problematic id="id2" refid="id1">
 
284
            <problematic ids="id2" refid="id1">
285
285
                *
286
286
            may not
287
287
        <line>
288
288
            wrap* over several lines.
289
 
    <system_message backrefs="id2" id="id1" level="2" line="1" source="test data" type="WARNING">
 
289
    <system_message backrefs="id2" ids="id1" level="2" line="1" source="test data" type="WARNING">
290
290
        <paragraph>
291
291
            Inline emphasis start-string without end-string.
292
292
"""],