Skip to content

Commit

Permalink
chore: Pre-commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldedik committed May 6, 2024
1 parent 5f952ea commit e8758e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ludic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ def to_html(self) -> str:
if dom.html_name == "__hidden__":
element_tag += children_str
return element_tag

element_tag += f"<{dom.html_name}"
if (dom.has_attributes() or classes):
if dom.has_attributes() or classes:
attributes_str = dom._format_attributes(classes, is_html=True)
element_tag += f" {attributes_str}"

if dom.children or dom.always_pair:
element_tag += f">{children_str}</{dom.html_name}>"
else:
Expand Down
8 changes: 4 additions & 4 deletions ludic/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
BlockquoteAttrs,
ButtonAttrs,
CanvasAttrs,
CircleAttrs,
ColAttrs,
DataAttrs,
DelAttrs,
Expand All @@ -27,6 +28,7 @@
InsAttrs,
LabelAttrs,
LiAttrs,
LineAttrs,
MapAttrs,
MetaAttrs,
MeterAttrs,
Expand All @@ -37,17 +39,15 @@
OptionAttrs,
OutputAttrs,
ParamAttrs,
PathAttrs,
PolylineAttrs,
ProgressAttrs,
QAttrs,
ScriptAttrs,
SelectAttrs,
SourceAttrs,
StyleAttrs,
SvgAttrs,
CircleAttrs,
LineAttrs,
PathAttrs,
PolylineAttrs,
TdAttrs,
TextAreaAttrs,
ThAttrs,
Expand Down

0 comments on commit e8758e0

Please sign in to comment.