/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/rst2html.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-02 20:46:44 UTC
  • mfrom: (3145.1.2 no-inventory4)
  • Revision ID: pqm@pqm.ubuntu.com-20080102204644-m6dav0cszl5e471x
Handle missing tools gracefully in diff --using (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
A minimal front end to the Docutils Publisher, producing HTML.
11
11
"""
12
12
 
 
13
# modified version for 
 
14
 
13
15
try:
14
16
    import locale
15
17
    locale.setlocale(locale.LC_ALL, '')
19
21
import docutils
20
22
from docutils.core import publish_cmdline, default_description
21
23
 
22
 
if True: # this is still required in the distutils trunk as-at June 2008.
 
24
 
 
25
if docutils.__version__ <= '0.4.1':
23
26
    from docutils.parsers.rst.states import Body
24
27
    # we have some option names that contain dot; which is not allowed by
25
28
    # python-docutils 0.4-4 -- so monkeypatch in a better pattern