Documentation
¶
Overview ¶
Package htmlfmt pretty-prints compact HTML for the doc-site source tabs.
templ emits HTML on a single line; this re-indents it. x/net/html tokenizes (handling quotes, raw-text elements, comments, entities); the rest is a width-based indent pass. An element whose whole subtree fits on one line stays inline; a longer one breaks each child onto its own line. Prose (an element with direct text) flows its inline content instead of stacking it, unless it wraps a structural child too wide to inline, which forces a stack. A start tag wider than the target wraps one attribute per line.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.