8000 Fix comment with leading dash · awesome-python/html5lib-python@bcbf113 · GitHub
[go: up one dir, main page]

Skip to content

Commit bcbf113

Browse files
committed
Fix comment with leading dash
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40871
1 parent 36a90f5 commit bcbf113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html5lib/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def commentStartDashState(self):
679679
self.tokenQueue.append(self.currentToken)
680680
self.state = self.states["data"]
681681
else:
682-
self.currentToken["data"] += data + self.stream.charsUntil(u"-")
682+
self.currentToken["data"] += "-" + data + self.stream.charsUntil(u"-")
683683
self.state = self.states["comment"]
684684
return True
685685

0 commit comments

Comments
 (0)
0