~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/rst2html.py

  • Committer: Ian Clatworthy
  • Date: 2007-12-17 01:45:32 UTC
  • mto: (3119.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3120.
  • Revision ID: ian.clatworthy@internode.on.net-20071217014532-dmbv2mm72nzq0ai6
follow-up tweaks to bzr.dev integration

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