Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vittoriabitton committed Mar 13, 2024
1 parent 7aebfaa commit a65b8f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions lib/floki/html_tree.ex
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,13 @@ defmodule Floki.HTMLTree do

if match?(%HTMLNode{}, root) do
container_doc(
open,
[{html_tree, root.children_nodes_ids}],
close,
opts,
&fun/2,
container_opts
)
open,
[{html_tree, root.children_nodes_ids}],
close,
opts,
&fun/2,
container_opts
)
else
open
end
Expand Down
3 changes: 2 additions & 1 deletion test/floki/html_tree_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ defmodule Floki.HTMLTreeTest do
}
}

assert inspect(html_tree) == ~s|%HTMLTree{<html>start of the stack<a class="link"><b>click me</b></a><span></span></html>}|
assert inspect(html_tree) ==
~s|%HTMLTree{<html>start of the stack<a class="link"><b>click me</b></a><span></span></html>}|
end
end

0 comments on commit a65b8f8

Please sign in to comment.