From 8c0698b013edeb82586290e637df7c30ede81b5a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 28 Mar 2015 21:48:41 -0400 Subject: Simplify output_formats to html and xhtml. We started with the numbers before HTML5 was a thing and we thought there might be an XHTML2. Today, we know that all we have are HTML style tags and XHTML style tags. Nothing else really matters in the real world. Note that if '(x)html1' '(x)html4' or '(x)html5' are passed in, the number is stripped/ignored. Users shouldn't need to change their code for this. --- tests/test_apis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_apis.py b/tests/test_apis.py index 15ecc5b..251657b 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -596,7 +596,7 @@ class TestCliOptionParsing(unittest.TestCase): 'input': None, 'output': None, 'encoding': None, - 'output_format': 'xhtml1', + 'output_format': 'xhtml', 'lazy_ol': True, 'extensions': [], 'extension_configs': {}, @@ -646,8 +646,8 @@ class TestCliOptionParsing(unittest.TestCase): self.assertEqual(options, self.default_options) def testOutputFormatOption(self): - options, logging_level = parse_options(['-o', 'html5']) - self.default_options['output_format'] = 'html5' + options, logging_level = parse_options(['-o', 'html']) + self.default_options['output_format'] = 'html' self.assertEqual(options, self.default_options) def testNoLazyOlOption(self): -- cgit v1.2.3