[Zope-Checkins] CVS: Zope/lib/python/reStructuredText - __init__.py:1.7
Andreas Jung
andreas@andreas-jung.com
Sun, 18 May 2003 11:03:15 -0400
Update of /cvs-repository/Zope/lib/python/reStructuredText
In directory cvs.zope.org:/tmp/cvs-serv15768
Modified Files:
__init__.py
Log Message:
minor code cleanup
=== Zope/lib/python/reStructuredText/__init__.py 1.6 => 1.7 ===
--- Zope/lib/python/reStructuredText/__init__.py:1.6 Mon Mar 3 11:01:03 2003
+++ Zope/lib/python/reStructuredText/__init__.py Sun May 18 11:03:15 2003
@@ -13,7 +13,7 @@
""" Wrapper to integrate reStructuredText into Zope """
-__all__ = ["HTML" ]
+__all__ = ("HTML", )
import docutils.core
from docutils.io import StringOutput, StringInput
@@ -24,7 +24,6 @@
default_output_encoding = os.environ.get("REST_OUTPUT_ENCODING",
sys.getdefaultencoding())
-
class Warnings:
def __init__(self):
@@ -34,9 +33,13 @@
self.messages.append(message)
-def HTML(src, writer='html4zope', report_level=1, stylesheet='default.css',
+def HTML(src,
+ writer='html4zope',
+ report_level=1,
+ stylesheet='default.css',
input_encoding=default_input_encoding,
output_encoding=default_output_encoding):
+
""" render HTML from a reStructuredText string
- 'src' -- string containing a valid reST document