Current section
Files
Jump to
Current section
Files
lib/xberg/whitespace_mode.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:ba94fe4cec719c31f8ac484fcc2aba1d30db0f87dea8b1b6d0257417a4a260e2
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.WhitespaceMode do
@moduledoc """
Whitespace handling strategy during conversion.
Determines how sequences of whitespace characters (spaces, tabs, newlines) are processed.
"""
@typedoc "Whitespace handling strategy during conversion."
@type t :: :normalized | :strict
@normalized :normalized
@strict :strict
@doc "Collapse multiple whitespace characters to single spaces. Default. Matches browser behavior."
@spec normalized() :: t()
def normalized, do: @normalized
@doc "Preserve all whitespace exactly as it appears in the HTML."
@spec strict() :: t()
def strict, do: @strict
end