/[gzz]/depends/rst2html.py
ViewVC logotype

Diff of /depends/rst2html.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by humppake, Wed Nov 6 09:16:33 2002 UTC revision 1.3 by humppake, Wed Nov 6 09:57:20 2002 UTC
# Line 1  Line 1 
1  #!/usr/bin/env python  #!/usr/bin/env python
2    
3  """  # Author: David Goodger
4  :Author: David Goodger  # Contact: goodger@users.sourceforge.net
5  :Contact: goodger@users.sourceforge.net  # Revision: $Revision$
6  :Revision: $Revision$  # Date: $Date$
7  :Date: $Date$  # Copyright: This module has been placed in the public domain.
 :Copyright: This module has been placed in the public domain.  
8    
9  A minimal front end to the Docutils Publisher, producing HTML.  """
10    A minimal front end to the Docutils Publisher, producing pseudo-XML.
11  """  """
12    
13  import locale  import locale
14  locale.setlocale(locale.LC_ALL, '')  try:
15        locale.setlocale(locale.LC_ALL, '')
16    except:
17        pass
18    
19  from docutils.core import publish, default_description  from docutils.core import publish_cmdline, default_description
20    
21    
22  description = ('Generates (X)HTML documents from standalone reStructuredText '  description = ('Generates HTML from standalone reStructuredText '
23                 'sources.  ' + default_description)                 'sources (for testing purposes).  ' + default_description)
24    
25  publish(writer_name='html', description=description)  publish_cmdline(writer_name='html', description=description)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26