diff --git a/test/spec_tests.py b/test/spec_tests.py
@@ -44,9 +44,9 @@ def do_test(test, normalize):
if passed:
return 'pass'
else:
- print_test_header(headertext, example_number,start_line,end_line)
+ print_test_header(test['section'], test['example'], test['start_line'], test['end_line'])
sys.stdout.write(test['markdown'])
- expected_html_lines = '\n'.split(expected_html)
+ expected_html_lines = expected_html.splitlines(True)
actual_html_lines = actual_html.splitlines(True)
for diffline in unified_diff(expected_html_lines, actual_html_lines,
"expected HTML", "actual HTML"):