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

« back to all changes in this revision

Viewing changes to docutils/parsers/rst/roles.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
 
# Author: Edward Loper
2
 
# Contact: edloper@gradient.cis.upenn.edu
3
 
# Revision: $Revision: 3155 $
4
 
# Date: $Date: 2005-04-02 23:57:06 +0200 (Sat, 02 Apr 2005) $
 
1
# $Id: roles.py 4564 2006-05-21 20:44:42Z wiemann $
 
2
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
5
3
# Copyright: This module has been placed in the public domain.
6
4
 
7
5
"""
266
264
        prb = inliner.problematic(rawtext, rawtext, msg)
267
265
        return [prb], [msg]
268
266
    # Base URL mainly used by inliner.pep_reference; so this is correct:
269
 
    ref = inliner.document.settings.pep_base_url + inliner.pep_url % pepnum
 
267
    ref = (inliner.document.settings.pep_base_url
 
268
           + inliner.document.settings.pep_file_url_template % pepnum)
270
269
    set_classes(options)
271
270
    return [nodes.reference(rawtext, 'PEP ' + utils.unescape(text), refuri=ref,
272
271
                            **options)], []