10000 Fix crlfs · awesome-python/html5lib-python@0804ead · GitHub
[go: up one dir, main page]

Skip to content

Commit 0804ead

Browse files
committed
Fix crlfs
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40617
1 parent 17b1cfc commit 0804ead

File tree

3 files changed

+341
-341
lines changed

3 files changed

+341
-341
lines changed

src/constants.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
tableInsertModeElements = frozenset((
120120
"table",
121121
"tbody",
122-
"tfoot",
123-
"thead",
122+
"tfoot",
123+
"thead",
124124
"tr"
125125
))
126126

@@ -133,7 +133,7 @@
133133
asciiUpper2Lower = dict([(ord(c),ord(c.lower()))
134134
for c in string.ascii_uppercase])
135135

136-
# Heading elements need to be ordered
136+
# Heading elements need to be ordered
137137
headingElements = (
138138
"h1",
139139
"h2",
@@ -156,26 +156,26 @@
156156
"area",
157157
"col",
158158
"input"
159-
))
160-
161-
booleanAttributes = {
162-
"": frozenset(("irrelevant",)),
163-
"style": frozenset(("scoped",)),
164-
"img": frozenset(("ismap",)),
165-
"audio": frozenset(("autoplay","controls")),
166-
"video": frozenset(("autoplay","controls")),
167-
"script": frozenset(("defer", "async")),
168-
"details": frozenset(("open",)),
169-
"datagrid": frozenset(("multiple", "disabled")),
170-
"command": frozenset(("hidden", "disabled", "checked", "default")),
171-
"menu": frozenset(("autosubmit",)),
172-
"fieldset": frozenset(("disabled", "readonly")),
173-
"option": frozenset(("disabled", "readonly", "selected")),
174-
"optgroup": frozenset(("disabled", "readonly")),
175-
"button": frozenset(("disabled", "autofocus")),
176-
"input": frozenset(("disabled", "readonly", "required", "autofocus", "checked", "ismap")),
177-
"select": frozenset(("disabled", "readonly", "autofocus", "multiple")),
178-
"output": frozenset(("disabled", "readonly")),
159+
))
160+
161+
booleanAttributes = {
162+
"": frozenset(("irrelevant",)),
163+
"style": frozenset(("scoped",)),
164+
"img": frozenset(("ismap",)),
165+
"audio": frozenset(("autoplay","controls")),
166+
"video": frozenset(("autoplay","controls")),
167+
"script": frozenset(("defer", "async")),
168+
"details": frozenset(("open",)),
169+
"datagrid": frozenset(("multiple", "disabled")),
170+
"command": frozenset(("hidden", "disabled", "checked", "default")),
171+
"menu": frozenset(("autosubmit",)),
172+
"fieldset": frozenset(("disabled", "readonly")),
173+
"option": frozenset(("disabled", "readonly", "selected")),
174+
"optgroup": frozenset(("disabled", "readonly")),
175+
"button": frozenset(("disabled", "autofocus")),
176+
"input": frozenset(("disabled", "readonly", "required", "autofocus", "checked", "ismap")),
177+
"select": frozenset(("disabled", "readonly", "autofocus", "multiple")),
178+
"output": frozenset(("disabled", "readonly")),
179179
}
180180

181181
# entitiesWindows1252 has to be _ordered_ and needs to have an index. It

0 commit comments

Comments
 (0)
0