Add TunitModifications with first modifier unite_with_next

This commit is contained in:
Thelonius Kort
2023-03-28 14:48:26 +02:00
parent b92503d643
commit 3a2af2adb4
4 changed files with 172 additions and 2 deletions

View File

@ -1,6 +1,6 @@
defmodule Outlook.InternalTree do
alias Outlook.InternalTree.{Html,Modifiers,RawInternalBasic,InternalTree,Translation}
alias Outlook.InternalTree.{Html,Modifiers,RawInternalBasic,InternalTree,Translation,TunitModifications}
alias Outlook.HtmlPreparations.HtmlPreparation
alias Outlook.{Hyphenation, Translations}
@ -71,4 +71,8 @@ defmodule Outlook.InternalTree do
InternalTree.collect_tunit_ids(tree)
# |> List.flatten()
end
def modify_tunits(tree, modifier, tu_ids) do
TunitModifications.apply_modifier(tree, modifier, tu_ids)
end
end