Update partitioning to strip empty elements

This commit is contained in:
Thelonius Kort
2023-01-12 22:48:33 +01:00
parent e45e3597c9
commit b7db9cdd8e
2 changed files with 23 additions and 2 deletions

View File

@ -153,7 +153,8 @@ defmodule Outlook.InternalTreeTest do
%Outlook.InternalTree.InternalNode{
name: "a",
attributes: %{
href: "https://www.politico.eu/article/fit-for-55-eu-5-things-to-know/"
href: "https://www.politico.eu/article/fit-for-55-eu-5-things-to-know/",
bullshit: "bollocks"
},
type: :element,
nid: "qxCrs0csHDLI",
@ -197,7 +198,7 @@ defmodule Outlook.InternalTreeTest do
%Outlook.InternalTree.TranslationUnit{
status: :untranslated,
nid: "xxxxxx",
content: "<a href=\"https://www.politico.eu/article/fit-for-55-eu-5-things-to-know/\"></a> In reality it will destroy the transport industry, steel, cement as well as coal and gas fuel electric generation. ",
content: " In reality it will destroy the transport industry, steel, cement as well as coal and gas fuel electric generation. ",
eph: %{}
}
],