Update editing translation

This commit is contained in:
Thelonius Kort
2023-01-09 21:35:35 +01:00
parent 71e6a8da60
commit 33ed533a1a
10 changed files with 111 additions and 18 deletions

View File

@ -1,6 +1,6 @@
defmodule Outlook.InternalTree do
alias Outlook.InternalTree.{Html,Modifiers,RawInternalBasic}
alias Outlook.InternalTree.{Html,Modifiers,RawInternalBasic,InternalTree}
alias Outlook.HtmlPreparations.HtmlPreparation
def render_html(tree) do
@ -26,4 +26,13 @@ defmodule Outlook.InternalTree do
|> RawInternalBasic.set_split_markers()
|> RawInternalBasic.partition_to_tunits()
end
def garnish(tree, options) do
options = Enum.reduce(
~w(el_ids el_names tu_ids)a,
options,
fn prop, opts -> Map.put_new(opts, prop, []) end
)
InternalTree.garnish(tree, options)
end
end