Collapse whitespace
collapse_whitespace
Collapse-whitespace strategy — reduce redundant blank lines and trailing spaces.
CollapseWhitespaceStrategy
Bases: SmeltStrategy
Collapse consecutive blank lines and strip trailing whitespace.
Source code in packages/axm-smelt/src/axm_smelt/strategies/collapse_whitespace.py
category
property
Strategy category (whitespace).
name
property
Strategy identifier used in the registry.
apply(ctx)
Collapse redundant whitespace outside fenced code blocks.