# indent_lines_after_first

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/runnables/utils/indent_lines_after_first)

Indent all lines of text after the first line.

## Signature

```python
indent_lines_after_first(
    text: str,
    prefix: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | The text to indent. |
| `prefix` | `str` | Yes | Used to determine the number of spaces to indent. |

## Returns

`str`

The indented text.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/8fec4e7ceee2c368b068c49f9fed453276e210e7/libs/core/langchain_core/runnables/utils.py#L450)