From 2b25c130951c58570eece743738f6e2f85b1096a Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Sun, 28 May 2023 15:31:08 +0200 Subject: [PATCH] Fix bug which omits element's attributes There is a questionable design decision: for getting the attributes from the %InternalNode{} into the rendered html output they always have to be copied into node.eph.attributes. (OutlookWeb.HtmlDocComponent.dnode()) --- lib/outlook/internal_tree.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/outlook/internal_tree.ex b/lib/outlook/internal_tree.ex index d6172fc..43d9e8c 100644 --- a/lib/outlook/internal_tree.ex +++ b/lib/outlook/internal_tree.ex @@ -56,6 +56,7 @@ defmodule Outlook.InternalTree do def render_public_content(tree, translation, language) do Translation.render_translation(tree, translation) + |> garnish(%{}) |> Html.render_doc() |> Hyphenation.hyphenate(language) end