| changeset | 5cadcaa13bed |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | prevent <newline tag mangling remove charref and entityref handlers; change where newline inserted after start tag. A test under python2 ended up with a newline between the opening '<' and the tag. This was caused by a string that had escaped > and <. embedded code block <pre>\n\n<pre> python\nline 1\nline 2\n</pre> The code was mapping < etc back to < and > and confusing the parser as to where the tag really started. It inserpreted the real pre tag as data and inserted a newline. |
| files |
| changeset | 5bc36b65d06b |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | fix typos in docstring. |
| files |
| changeset | 3546f23ea493 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | Add support for python2. My development install has a backport for html.parser so it didn't fail import but did in CI. |
| files |
| changeset | dc83ebff4c90 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | change test to use html normalizer when comparing html output. Update to Markdown2 parser changed text output keeping same html semantics. Broke test_string_markdown_code_block_attribute test. I hand patched it to get tests working but it needed a better solution. Write a simple html normalizer using HTMLParser so I don't need third party (lxml, beautifulsoup) library to clean up the test. Use the normalizer to parser the expected result and the result returned by the various markdown libraries. Hopefully this will make the test less fragile. This can have multiple uses in template testing where html is compared. I expect to have to change html_norm.py to make test writing easier in the future. |
| files |