Skip to content

Commit

Permalink
Documentation: describe lineEndings
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Jul 8, 2024
1 parent 6e70080 commit 199e729
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5310,6 +5310,19 @@ maxColumn = 30

## Miscellaneous

### `lineEndings`

This parameter controls which end-of-line character sequences will be output,
takes the following values:

- `unix`: outputs LF (`U+000A`)
- `windows`: uses CRLF (`U+000D U+000A`)
- `preserve`: if an input file _contains_ CRLF anywhere, use CRLF for every line; otherwise, LF

```scala mdoc:defaults
lineEndings
```

### `rewriteTokens`

Map of tokens to rewrite. For example, Map("⇒" -> "=>") will rewrite unicode
Expand Down

0 comments on commit 199e729

Please sign in to comment.