# collapseWhitespace

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/doc-annotations.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/doc-annotations.ts#L73)

Collapse to a single line: for a summary, which is rendered in a list where a newline or a
run of alignment spaces from a docblock would break the row.

## Signature

```ts
function collapseWhitespace(text: string): string
```

## Parameters

| Name | Type |
|---|---|
| `text` | `string` |

**Returns:** `string`
