Skip to content

Commit

Permalink
feat: Run to_html for str(element)
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldedik committed Jun 26, 2024
1 parent 82c7b43 commit 3e02e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ludic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, *children: Any, **attrs: Any) -> None:
self.attrs = attrs

def __str__(self) -> str:
return self.to_string()
return self.to_html()

def __format__(self, _: str) -> str:
return self.formatter.append(self)
Expand Down

0 comments on commit 3e02e5a

Please sign in to comment.