Skip to content

Commit

Permalink
replace tab with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mankyd committed Feb 20, 2013
1 parent 1b8e856 commit 9e882a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htmlmin/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def build_tag(self, tag, attrs, close_tag):
k in BOOLEAN_ATTRIBUTES.get(tag,[]) or
k in BOOLEAN_ATTRIBUTES['*']):
pass
elif not any((c in v for c in ('"', "'", ' ', '<', '>'))):
elif not any((c in v for c in ('"', "'", ' ', '<', '>'))):
result += '={}'.format(escape(v, quote=True))
else:
result += '="{}"'.format(escape(v, quote=True).replace('&#x27;', "'"))
Expand Down

0 comments on commit 9e882a3

Please sign in to comment.