We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfce3ed commit cacb175Copy full SHA for cacb175
lib/elixir/lib/inspect/algebra.ex
@@ -588,6 +588,21 @@ defmodule Inspect.Algebra do
588
doc_cons(doc1, doc2)
589
end
590
591
+ @doc ~S"""
592
+ Disable any rendering limit while rendering the given document.
593
+
594
+ ## Examples
595
596
+ iex> doc = Inspect.Algebra.glue("hello", "world") |> Inspect.Algebra.group()
597
+ iex> Inspect.Algebra.format(doc, 10)
598
+ ["hello", "\n", "world"]
599
+ iex> doc = Inspect.Algebra.no_limit(doc)
600
601
+ ["hello", " ", "world"]
602
603
+ """
604
+ @doc since: "1.14.0"
605
+ @spec no_limit(t) :: t
606
def no_limit(doc) do
607
doc_limit(doc, :infinity)
608
0 commit comments