pub struct NodeFlags {
pub generated: bool,
pub sentence_end: bool,
pub no_print: bool,
pub no_fill: bool,
pub deep_link_target: bool,
pub permalink: bool,
pub line_start: bool,
pub delimiter_open: bool,
pub delimiter_close: bool,
pub line_continuation: bool,
pub synopsis_pretty: bool,
}Expand description
Source and renderer flags needed by a lowering or rendering pass.
Fields§
§generated: boolThe node was synthesized by libmandoc rather than written explicitly.
sentence_end: boolThe node ends a sentence according to libmandoc punctuation rules.
no_print: boolThe node must not contribute visible output.
no_fill: boolThe node belongs to a no-fill region that preserves source lines.
deep_link_target: boollibmandoc selected this node as a same-document destination.
permalink: boollibmandoc renders a self-link for this destination.
line_start: boolThis node begins a roff input line (NODE_LINE).
Some man macros keep same-line layout arguments and next-line visible content in one syntax head, so source-line role is semantic data.
delimiter_open: boolThis text node is opening punctuation and suppresses spacing after it.
delimiter_close: boolThis text node is closing punctuation and suppresses spacing before it.
line_continuation: boolThis text node ends with the roff \c escape and joins the next input
line without an implicit space or line break.
synopsis_pretty: boollibmandoc selected synopsis-style presentation for this node.
Some semantic punctuation is generated only in this context, notably
the terminating semicolon of mdoc Fn and Fo declarations.