Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ppcomp/ppcomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

/* Add spaces around td tags */
td::before, td::after { content: " "; }

/* Remove thought breaks */
.tb { display: none; }

Expand Down Expand Up @@ -501,7 +501,7 @@ def load(self, filename):
raise SyntaxError('Not an html file: ' + filename)
super().load(filename)
try:
if 0 <= self.text.find('<!DOCTYPE html>', 0, 100): # limit search
if "<!doctype html>" in self.text[:100].lower(): # limit search
self.tree, errors = self.parse_html5()
else:
self.tree, errors = self.parse_html()
Expand Down
Loading