From 5344fd51d25960dee6ef9f639bbccffd4fa4b3ed Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 3 Jul 2015 20:42:15 -0700 Subject: spec_tests.py: Properly handle visible tab → in test expected output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/spec_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec_tests.py b/test/spec_tests.py index 6c276ca..be11f12 100755 --- a/test/spec_tests.py +++ b/test/spec_tests.py @@ -6,8 +6,8 @@ from difflib import unified_diff import argparse import re import json -from normalize import normalize_html from cmark import CMark +from normalize import normalize_html if __name__ == "__main__": parser = argparse.ArgumentParser(description='Run cmark tests.') @@ -96,7 +96,7 @@ def get_tests(specfile): end_line = line_number tests.append({ "markdown":''.join(markdown_lines).replace('→',"\t"), - "html":''.join(html_lines), + "html":''.join(html_lines).replace('→',"\t"), "example": example_number, "start_line": start_line, "end_line": end_line, -- cgit v1.2.3