Add missing space before HTML attributes

This commit is contained in:
Scoder12
2020-07-28 12:52:52 -07:00
parent 32c8dcdf50
commit dcbef77b75
+1 -1
View File
@@ -30,7 +30,7 @@ class HTMLElement(ABC):
"""Generates an HTML representation of the tag."""
attr_text = self.stringify_attrs()
return (
f"<{self.tagname}{'' + attr_text if attr_text else ''}>{self.content}"
f"<{self.tagname}{' ' + attr_text if attr_text else ''}>{self.content}"
f"</{self.tagname}>"
)