Skip to content

Commit

Permalink
Clean up comments/whitespace around filters for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Jun 17, 2013
1 parent b6ce031 commit 259bc39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html5lib/serializer/htmlserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,11 @@ def serialize(self, treewalker, encoding=None):
self.encoding = encoding
in_cdata = False
self.errors = []

if encoding and self.inject_meta_charset:
from ..filters.inject_meta_charset import Filter
treewalker = Filter(treewalker, encoding)
# XXX: WhitespaceFilter should be used before OptionalTagFilter
# WhitespaceFilter should be used before OptionalTagFilter
# for maximum efficiently of this latter filter
if self.strip_whitespace:
from ..filters.whitespace import Filter
Expand Down

0 comments on commit 259bc39

Please sign in to comment.