diff --git a/eorg/generate.py b/eorg/generate.py
index 703b9f9..3dab2e6 100644
--- a/eorg/generate.py
+++ b/eorg/generate.py
@@ -155,7 +155,8 @@ def handle_token(doc, item, root=False):
def html(doc):
- response = StringIO('
')
+ response = StringIO()
+ response.write('
')
for item in doc:
response.write(handle_token(doc, item, True))
response.write('
')
diff --git a/tests/test_documents.py b/tests/test_documents.py
index 92226a3..830b62e 100755
--- a/tests/test_documents.py
+++ b/tests/test_documents.py
@@ -24,7 +24,7 @@ def test_html_output():
print(htmlbody)
assert (
htmlbody
- == """
Header 1
+ == """
Header 1
Sub Header 1
body text
over multiple lines
@@ -34,5 +34,5 @@ def test_html_output():
"""
+
"""
)
diff --git a/tests/test_html.py b/tests/test_html.py
index 038afc7..cd83ebc 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -7,7 +7,7 @@ from eorg.generate import html
def test_bullet_block():
- expected = """