diff --git a/lib/outlook/internal_tree.ex b/lib/outlook/internal_tree.ex index a182dba..9c83e0e 100644 --- a/lib/outlook/internal_tree.ex +++ b/lib/outlook/internal_tree.ex @@ -56,8 +56,10 @@ defmodule Outlook.InternalTree do end def legacy_export(tree, translation) do - Translation.render_translation(tree, translation) + content= Translation.render_translation(tree, translation) |> garnish(%{tunits: %{class: "ttrans", "data-ttrans-status": fn n -> Map.get(n, :status) end}}) |> Html.render_doc + IO.puts "writing export.html to #{File.cwd!}" + File.write("export.html", content) end end