-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'line-endings' option to specify line endings used in the formatt…
…ed output (#1703)
- Loading branch information
Showing
17 changed files
with
256 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ break-cases = fit | |
margin = 77 | ||
parse-docstrings = true | ||
wrap-comments = true | ||
line-endings = lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
let _ = {| | ||
foo | ||
|
||
bar | ||
|} | ||
|
||
(** This is verbatim: | ||
{v | ||
o o | ||
/\ /\ | ||
/\ /\ | ||
v} | ||
This is preformated code: | ||
{[ | ||
let verbatim s = | ||
s |> String.split_lines |> List.map ~f:String.strip | ||
|> fun s -> list s "@," Fmt.str | ||
]} *) | ||
|
||
(** Lists: | ||
list with short lines: | ||
- x | ||
list with long lines: | ||
- xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx | ||
xxx xxx xxx xxx xxx xxx | ||
list with sub lists: | ||
{ul | ||
{- xxx | ||
- a | ||
} | ||
} *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--line-endings=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
let _ = {| | ||
foo | ||
|
||
bar | ||
|} | ||
|
||
(** This is verbatim: | ||
|
||
{v | ||
o o | ||
/\ /\ | ||
/\ /\ | ||
v} | ||
|
||
This is preformated code: | ||
|
||
{[ | ||
let verbatim s = | ||
s |> String.split_lines |> List.map ~f:String.strip | ||
|> fun s -> list s "@," Fmt.str | ||
]} *) | ||
|
||
(** Lists: | ||
|
||
list with short lines: | ||
|
||
- x | ||
|
||
list with long lines: | ||
|
||
- xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx | ||
xxx xxx xxx xxx xxx xxx | ||
|
||
list with sub lists: | ||
|
||
{ul | ||
{- xxx | ||
|
||
- a | ||
} | ||
} *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
let _ = {| | ||
foo | ||
|
||
bar | ||
|} | ||
|
||
(** This is verbatim: | ||
{v | ||
o o | ||
/\ /\ | ||
/\ /\ | ||
v} | ||
This is preformated code: | ||
{[ | ||
let verbatim s = | ||
s |> String.split_lines |> List.map ~f:String.strip | ||
|> fun s -> list s "@," Fmt.str | ||
]} *) | ||
|
||
(** Lists: | ||
list with short lines: | ||
- x | ||
list with long lines: | ||
- xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx | ||
xxx xxx xxx xxx xxx xxx | ||
list with sub lists: | ||
{ul | ||
{- xxx | ||
- a | ||
} | ||
} *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--line-endings=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
let _ = {| | ||
foo | ||
|
||
bar | ||
|} | ||
|
||
(** This is verbatim: | ||
|
||
{v | ||
o o | ||
/\ /\ | ||
/\ /\ | ||
v} | ||
|
||
This is preformated code: | ||
|
||
{[ | ||
let verbatim s = | ||
s |> String.split_lines |> List.map ~f:String.strip | ||
|> fun s -> list s "@," Fmt.str | ||
]} *) | ||
|
||
(** Lists: | ||
|
||
list with short lines: | ||
|
||
- x | ||
|
||
list with long lines: | ||
|
||
- xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx | ||
xxx xxx xxx xxx xxx xxx | ||
|
||
list with sub lists: | ||
|
||
{ul | ||
{- xxx | ||
|
||
- a | ||
} | ||
} *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters