๐ Multi-Line String
A text box that doesn't make you fight single-line hell
- STRING
ComfyUI's default text widget is a single line, and anyone who's tried to paste a twenty-item negative prompt or a block of prose into it knows the pain: it grows sideways, scrolls weirdly, and generally fights you. MultiLineString is the two-second fix - a node whose only job is to give you a proper multiline text box and hand the string out the other side unchanged.
The whole API
One input, one output:
text(STRING, multiline) - the box you type or paste into.STRING(output) - the same text, passed through verbatim.
That's it. There's no processing, no trimming, no join logic. It's a pass-through with a better widget. The pack also has a String Joiner if you eventually need to combine several of these - this node is the input side of that pattern.
What "verbatim" means in practice
Because nothing is cleaned up, whatever you type is exactly what comes out - newlines included. Two things to know about that:
- For prompts, this is usually fine. Most text encoders collapse whitespace anyway, so your newlines mostly act as visual formatting for you, not as instructions for the model. Typing a negative prompt as a neat list is a readability win with no side effects.
- For actual data, newlines matter. If the string is destined for a filename, a print/debug node, or anything that cares about exact content, remember that Enter key you pressed is in the string.
Why it exists in a pack full of sigma and loop nodes
Straight-up convenience. The pack's author clearly built workflows and got annoyed at the single-line widget enough to ship a box that doesn't annoy them. It also gives you a stable, easy-to-find place to edit long text that's feeding multiple places - one multiline source wired to several consumers beats five tiny widgets you have to edit one at a time.
There are fancier multiline nodes out there (with text-to-file, replacement, and formatting features), but if you just want "big text box โ string," this is the one without any extra machinery to learn.
Install
Pack: InitialB Util. ComfyUI Manager โ search "InitialB Util" โ Install, or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/benjiyaya/Comfyui_InitialB_Util
cd Comfyui_InitialB_Util
pip install -r requirements.txt
Restart ComfyUI. No model downloads; the requirements are torch/numpy/scipy/Pillow, all already bundled. (The README's clone URL is a yourusername placeholder - use the real repo above or Manager.) The node lives under InitialB/text in the menu.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | โ |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | โ |