Fix bug that crashed with "<p> </p>"

This commit is contained in:
Thelonius Kort
2022-12-29 19:36:14 +01:00
parent b7bd9195b6
commit 5a37d20430

View File

@ -28,7 +28,7 @@ defmodule Outlook.InternalTree.Basic do
[ %InternalNode{node | content: case get_sibling_collocation(node.content) do
:block -> partition_textnodes(node.content)
:inline -> inline_to_translation_units(node.content)
_ -> node # rare case of only whitespace textnode(s) - does this ever happen?
_ -> [ node ]
end
} | partition_textnodes(rest) ]
end