We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f4dd41 commit a61037dCopy full SHA for a61037d
htmltools/_core.py
@@ -279,6 +279,10 @@ def extend(self, other: Iterable[TagChild]) -> None:
279
Extend the children by appending an iterable of children.
280
"""
281
282
+ # If other is a string (an iterable), convert it to a list of s.
283
+ if isinstance(other, str):
284
+ other = [other]
285
+
286
super().extend(_tagchilds_to_tagnodes(other))
287
288
def append(self, item: TagChild, *args: TagChild) -> None:
0 commit comments