Agregar sangría
text-indentAntepone un prefijo a cada línea (o solo a las no vacías). Cuándo: hay que transformar, comparar o medir un texto con exactitud y no por aproximación. No para: eliminar la sangría común de todas las líneas no vacías (text-dedent). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Prefixes every line (or only non-blank lines) with a given string, e.g. spaces, tabs or "> ". When: text has to be transformed, compared or measured exactly instead of approximated. Not for: removing the common leading whitespace from every non-blank line (text-dedent). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text (string; required). | |
| prefix | No | Prefix (string; optional; default " "; up to 64 chars). | |
| skip_blank | No | Leave blank lines untouched (boolean; optional; default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No |