Fix a regression in [r8062] (extra space with French smartquotes again).
[docutils.git] / sandbox / bbum / DocArticle / docarticle.py
blobfe1f68c788eb34c97e54c26556853704954244f4
1 #!/usr/bin/env python
3 # Author: Bill Bumgarner
4 # Contact: bbum@codefab.com
5 # Copyright: This module has been placed in the public domain.
7 """
8 docarticle.py
9 =============
11 This module provides a simple command line interface that uses the
12 DocArticle HTML writer to produce plain HTML output from
13 ReStructuredText source.
14 """
16 import locale
17 try:
18 locale.setlocale(locale.LC_ALL, '')
19 except:
20 pass
22 from docutils.core import publish_cmdline, default_description
23 from DocArticle import DocArticleWriter
25 description = ("Generates plain HTML. " + default_description)
27 publish_cmdline(writer=DocArticleWriter(), description=description)