forked from github/pelican
We already check if loop.length > 1 before outputting <section> and <ol> tags, but we neglected to do the same check when outputting the corresponding end tags. Also, since I had to read the code when I touched it, simplified a conditional: if (a) if (a and (b or not b and c)) can be simplified to if (a) if (b or c) Note the "b or not b", it was just too ugly to not fix. |
||
|---|---|---|
| .. | ||
| content | ||
| output | ||
| TestPages | ||
| __init__.py | ||
| default_conf.py | ||
| support.py | ||
| test_contents.py | ||
| test_generators.py | ||
| test_importer.py | ||
| test_pelican.py | ||
| test_readers.py | ||
| test_settings.py | ||
| test_utils.py | ||