Commit a07c997c authored by Timo Petmanson's avatar Timo Petmanson
Browse files

Commented out some print commands

parent 7a8e20b8
......@@ -111,7 +111,7 @@ class PrettyPrinter(object):
css_list = []
for aes in self.aesthetics:
css_list.extend(get_mark_css(aes, self.values[aes]))
print('\n'.join(css_list))
#print('\n'.join(css_list))
return '\n'.join(css_list)
def render(self, text, add_header=False):
......@@ -119,7 +119,7 @@ class PrettyPrinter(object):
html = html.replace('\n', '<br/>')
if add_header:
html = '\n'.join([HEADER, self.css, MIDDLE, html, FOOTER])
print('\n'.join((HEADER, self.css, MIDDLE, html, FOOTER)))
#print('\n'.join((HEADER, self.css, MIDDLE, html, FOOTER)))
return html
......@@ -56,7 +56,6 @@ class TestRender(unittest.TestCase):
pp = PrettyPrinter(color='A', background='B')
html = pp.render(text, False)
print(html)
expected = '<mark class="color">Esimene </mark><mark class="background color">ja</mark><mark class="background"> teine</mark> märgend'
self.assertEqual(expected, html)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment