Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65911f2

Browse files
author
James Graham
committed
Undo bogus change
1 parent51b2223 commit65911f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎html5lib/treebuilders/etree.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def serializeElement(element, indent=0):
218218
rv.append("|%s\"%s\""%(' '*(indent+2),element.text))
219219
ifelement.tail:
220220
finalText=element.tail
221-
elifelement.tag==ElementTree.Comment:
221+
eliftype(element.tag)==type(ElementTree.Comment):
222222
rv.append("|%s<!-- %s -->"%(' '*indent,element.text))
223223
else:
224224
asserttype(element.tag)intypes.StringTypes,"Expected unicode, got %s"%type(element.tag)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp