Revision: 2499
Author: janne.t.harkonen
Date: Mon Feb 22 04:47:03 2010
Log: whitespace
http://code.google.com/p/robotframework/source/detail?r=2499

Modified:
 /trunk/src/robot/utils/htmlwriter.py

=======================================
--- /trunk/src/robot/utils/htmlwriter.py        Sun Apr 19 13:26:54 2009
+++ /trunk/src/robot/utils/htmlwriter.py        Mon Feb 22 04:47:03 2010
@@ -18,23 +18,23 @@


 class HtmlWriter(AbstractXmlWriter):
-
+
     def __init__(self, output):
         """'output' is an open file object.
-
+
         Given 'output' must have been opened with 'wb' to be able to
         write into it with UTF-8 encoding.
-
+
         'self.output.name' is later used by serializers
         """
         self.output = output
-
+
     def start(self, name, attrs=None, newline=True):
         self._start(name, attrs, close=False, newline=newline)
-
+
     def start_and_end(self, name, attrs=None, newline=True):
-        self._start(name, attrs, close=True, newline=newline)
-
+        self._start(name, attrs, close=True, newline=newline)
+
     def content(self, content=None, escape=True):
         """Given content doesn't need to be a string"""
         if content is not None:
@@ -47,17 +47,17 @@
         if newline:
             elem += '\n'
         self._write(elem)
-
+
     def element(self, name, content=None, attrs=None, escape=True,
                 newline=True):
         self.start(name, attrs, newline=False)
         self.content(content, escape)
         self.end(name, newline)
-
+
     def start_many(self, names, newline=True):
         for name in names:
             self.start(name, newline=newline)
-
+
     def end_many(self, names, newline=True):
         for name in names:
             self.end(name, newline)
@@ -68,8 +68,8 @@
         elem += (close and ' />' or '>')
         if newline:
             elem += '\n'
-        self._write(elem)
-
+        self._write(elem)
+
     def _add_attrs(self, elem, attrs):
         if not attrs:
             return elem
@@ -78,7 +78,7 @@
         attrs = [ '%s="%s"' % (name, html_attr_escape(value))
                   for name, value in attrs ]
         return '%s %s' % (elem, ' '.join(attrs))
-
+
     def _escape_content(self, content):
         return html_escape(unic(content))

Reply via email to