Nodes/comfyui-moonpack/Text Builder
ComfyUI Node

Text Builder

Joins any number of multiline text blocks typed on the node with a separator. Blocks are added, toggled, reordered and removed directly on the node. A connected 'text' input is always the first part and cannot be reordered.

By moonwhaler·Created about a year ago·Updated 4 days ago· 15
Text Builder
    • text
    separator,
    skip_emptytrue
    strip_whitespacetrue
    newline_between_inputsfalse
    newline_wrapped_separator
    text
    CategoryMoonPack/string

    Inputs (6)

    NameTypeDefaultDescription
    separatorSTRING,Inserted verbatim between the parts. ',' gives 'a,b'; use ', ' for a space.
    skip_emptyBOOLEANtrueDrop parts that are empty after stripping, so no stray separators appear.
    strip_whitespaceBOOLEANtrueStrip leading/trailing whitespace from each part before joining.
    newline_between_inputsBOOLEANfalseJoin parts with a linefeed (\n) instead of 'separator'.
    newline_wrapped_separatorSTRINGAdvanced. If non-empty, joins parts as LF + this text + LF, e.g. '(part) LF (text) LF (part)'. Takes precedence over 'newline_between_inputs' and 'separator'.
    textoptSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING