# wrap_prose

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_rows/wrap_prose)

Wrap inline content and record how copied text rejoins the lines.

A soft wrap rejoins with the space it replaced, a fold inside a long word
with nothing, and a hard break with a newline.

## Signature

```python
wrap_prose(
    content: Content,
    width: int,
) -> list[Row]
```

## Returns

`list[Row]`

One selectable row per wrapped line.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/tui/widgets/final_markdown/_rows.py#L55)