Files
1lch2-ComfyUI-AnimaPromptFo…/README.md
T
2026-02-26 22:16:53 +08:00

31 lines
838 B
Markdown

# ComfyUI-AnimaPromptFormatter
[中文版](./README_zh.md) | English
A ComfyUI custom node for formatting [Anima](https://huggingface.co/circlestone-labs/Anima) prompts.
Unlike SDXL models like IllustrousXL or NoobAI XL, [Anima is sensitive to whitespaces, commas and line breaks](https://huggingface.co/circlestone-labs/Anima/discussions/57#6997ae1d9ab163d4a7a5121e). I create this custom node so I can keep my prompting habits on NoobAI models.
## Formatting Rules
1. Removes all line breaks (`\n`, `\r`)
2. Ensures exactly one space after each comma
3. Removes spaces before commas
4. Filters empty tags from consecutive commas
Example
**Input**:
```
tag1,tag2, tag3
,tag4,,tag5
```
**Output**:
```
tag1, tag2, tag3, tag4, tag5
```
## Usage
It's just a string input node, link the output to CLIPTextEncode node and it works.