Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
philss committed Dec 11, 2023
1 parent 7c4b68c commit 8bf8734
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/floki.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ defmodule Floki do

defguard is_html_node(value)
when is_binary(value) or tuple_size(value) == 3 or
(tuple_size(value) == 2 and elem(value, 0) in [:pi, :comment]) or (tuple_size(value) == 4 and elem(value, 0) == :doctype)
(tuple_size(value) == 2 and elem(value, 0) in [:pi, :comment]) or
(tuple_size(value) == 4 and elem(value, 0) == :doctype)

@doc """
Parses a HTML Document from a String.
Expand Down Expand Up @@ -285,7 +286,8 @@ defmodule Floki do
end
end

def find(html_tree_as_tuple, selector) when is_list(html_tree_as_tuple) or is_html_node(html_tree_as_tuple) do
def find(html_tree_as_tuple, selector)
when is_list(html_tree_as_tuple) or is_html_node(html_tree_as_tuple) do
{tree, results} = Finder.find(html_tree_as_tuple, selector)

Enum.map(results, fn html_node -> HTMLTree.to_tuple(tree, html_node) end)
Expand Down

0 comments on commit 8bf8734

Please sign in to comment.