diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c
index 13be18a81..358a948ab 100644
--- a/src/document/html/renderer.c
+++ b/src/document/html/renderer.c
@@ -1128,7 +1128,6 @@ justify_line(struct html_context *html_context, int y)
assert(word_len >= 0);
if_assert_failed continue;
- if (!word_len) continue;
word_shift = (word * diff) / (spaces - 1);
new_start = word_start + word_shift;