summaryrefslogtreecommitdiff
path: root/ureports
diff options
context:
space:
mode:
authorsylvain thenault <sylvain.thenault@logilab.fr>2009-01-19 18:27:23 +0100
committersylvain thenault <sylvain.thenault@logilab.fr>2009-01-19 18:27:23 +0100
commitffd5e670b9d18470be24d2dbf9b4f41c1e13372e (patch)
treedf657a9ccbb4c6d493bb6a24011712a645229a26 /ureports
parent78c127def12310c219bf82ce97cab6e70b44f3e7 (diff)
downloadlogilab-common-ffd5e670b9d18470be24d2dbf9b4f41c1e13372e.tar.gz
snipet -> snippet
Diffstat (limited to 'ureports')
-rw-r--r--ureports/docbook_writer.py4
-rw-r--r--ureports/html_writer.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/ureports/docbook_writer.py b/ureports/docbook_writer.py
index fe8fc79..8848132 100644
--- a/ureports/docbook_writer.py
+++ b/ureports/docbook_writer.py
@@ -23,7 +23,7 @@ class DocbookWriter(HTMLWriter):
def begin_format(self, layout):
"""begin to format a layout"""
super(HTMLWriter, self).begin_format(layout)
- if self.snipet is None:
+ if self.snippet is None:
self.writeln('<?xml version="1.0" encoding="ISO-8859-1"?>')
self.writeln("""
<book xmlns:xi='http://www.w3.org/2001/XInclude'
@@ -32,7 +32,7 @@ class DocbookWriter(HTMLWriter):
def end_format(self, layout):
"""finished to format a layout"""
- if self.snipet is None:
+ if self.snippet is None:
self.writeln('</book>')
def visit_section(self, layout):
diff --git a/ureports/html_writer.py b/ureports/html_writer.py
index 3169727..930aff7 100644
--- a/ureports/html_writer.py
+++ b/ureports/html_writer.py
@@ -22,9 +22,9 @@ from logilab.common.ureports import BaseWriter
class HTMLWriter(BaseWriter):
"""format layouts as HTML"""
- def __init__(self, snipet=None):
+ def __init__(self, snippet=None):
super(HTMLWriter, self).__init__()
- self.snipet = snipet
+ self.snippet = snippet
def handle_attrs(self, layout):
"""get an attribute string from layout member attributes"""
@@ -40,13 +40,13 @@ class HTMLWriter(BaseWriter):
def begin_format(self, layout):
"""begin to format a layout"""
super(HTMLWriter, self).begin_format(layout)
- if self.snipet is None:
+ if self.snippet is None:
self.writeln('<html>')
self.writeln('<body>')
def end_format(self, layout):
"""finished to format a layout"""
- if self.snipet is None:
+ if self.snippet is None:
self.writeln('</body>')
self.writeln('</html>')