Skip to content
Permalink
Browse files

Don’t remove DOCTYPE in typogrify filters

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 26, 2016
1 parent 1b1b117 commit aabf52e79a775a82fc6f725c9909243efa43b57a
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +1 −1 nikola/filters.py
@@ -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
@@ -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.
You can’t perform that action at this time.