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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2008-07-24 10:39:53 UTC
  • mfrom: (1.1.4 upstream) (3.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080724103953-8gh4uezg17g9ysgy
Tags: 0.5-2
* Upload docutils 0.5 to unstable
* Update rst.el to upstream Subversion r5596, which apparently fixes
  all its performance problems (17_speed_up_rst_el.dpatch, closes: #474941)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /usr/bin/env python
2
2
 
3
 
# Author: David Goodger
4
 
# Contact: goodger@users.sourceforge.net
5
 
# Revision: $Revision: 3160 $
6
 
# Date: $Date: 2005-04-03 01:12:06 +0200 (Sun, 03 Apr 2005) $
 
3
# $Id: test_tables.py 4647 2006-07-04 16:56:11Z wiemann $
 
4
# Author: David Goodger <goodger@python.org>
7
5
# Copyright: This module has been placed in the public domain.
8
6
 
9
7
"""
570
568
| to accommodate long filesystem paths.)                                       |
571
569
+------------------------------------------------------------------------------+
572
570
""") % ('\n'.join(['|    %-70s    |' % include2[part * 70 : (part + 1) * 70]
573
 
                   for part in range(len(include2) / 70 + 1)])),
 
571
                   for part in range(len(include2) // 70 + 1)])),
574
572
"""\
575
573
<document source="test data">
576
574
    <table>
605
603
 
606
604
And more.
607
605
""") % ('\n'.join(['|    %-70s    |' % include2[part * 70 : (part + 1) * 70]
608
 
                   for part in range(len(include2) / 70 + 1)])),
 
606
                   for part in range(len(include2) // 70 + 1)])),
609
607
"""\
610
608
<document source="test data">
611
609
    <paragraph>
1223
1221
           to accommodate long filesystem paths.
1224
1222
=========  =====================================================================
1225
1223
""" % ('\n'.join(['              %-65s' % include2[part * 65 : (part + 1) * 65]
1226
 
                  for part in range(len(include2) / 65 + 1)])),
 
1224
                  for part in range(len(include2) // 65 + 1)])),
1227
1225
"""\
1228
1226
<document source="test data">
1229
1227
    <table>