Skip to content

Commit

Permalink
wrapper.py -> Skip processing empty string in transform_html
Browse files Browse the repository at this point in the history
  • Loading branch information
bralbral committed Sep 26, 2023
1 parent 63a167f commit e4caa34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sulguk/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RenderResult:

def transform_html(raw_html: Optional[str]) -> RenderResult:

if raw_html is None:
if raw_html is None or raw_html.strip() == "":
return RenderResult(text="", entities=[])

transformer = Transformer()
Expand Down

0 comments on commit e4caa34

Please sign in to comment.