Skip to content

Commit

Permalink
Don’t remove DOCTYPE in typogrify filters
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 26, 2016
1 parent 1b1b117 commit aabf52e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -9,6 +9,7 @@ Features
Bugfixes
--------

* Don’t remove ``<!DOCTYPE html>`` if typogrify filters are in use
* Avoid infinite loop if bootstrap3 can't be loaded (Issue #2402)

New in v7.7.11
Expand Down
2 changes: 1 addition & 1 deletion nikola/filters.py
Expand Up @@ -336,7 +336,7 @@ def _normalize_html(data):
data = lxml.html.tostring(lxml.html.fromstring(data), encoding='unicode')
except:
pass
return data
return '<!DOCTYPE html>\n' + data


normalize_html = apply_to_text_file(_normalize_html)

0 comments on commit aabf52e

Please sign in to comment.