From 5a37d204302b122f998c1772a7db3bd4f549984d Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Thu, 29 Dec 2022 19:36:14 +0100 Subject: [PATCH] Fix bug that crashed with "

" --- lib/outlook/internal_tree/internal_tree_basic.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outlook/internal_tree/internal_tree_basic.ex b/lib/outlook/internal_tree/internal_tree_basic.ex index c844fde..b4f5964 100644 --- a/lib/outlook/internal_tree/internal_tree_basic.ex +++ b/lib/outlook/internal_tree/internal_tree_basic.ex @@ -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