Update editing translation
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user