Skip to content

Commit

Permalink
Document range bugfix in changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulj committed Apr 11, 2019
1 parent 22b4726 commit e2a7472
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.unreleased.md
Expand Up @@ -42,6 +42,43 @@ Examples:
-->

- Range: Fix ranged formatting not using the correct line width ([#6050] by [@mathieulj])

```
// Input
function f() {
if (true) {
call("this line is 79 chars", "long", "it should", "stay as single line");
}
}
// Output (Prettier stable run with --range-start 30 --range-end 110)
function f() {
if (true) {
call(
"this line is 79 chars",
"long",
"it should",
"stay as single line"
);
}
}
// Output (Prettier stable run without range)
function f() {
if (true) {
call("this line is 79 chars", "long", "it should", "stay as single line");
}
}
// Output (Prettier master with and without range)
function f() {
if (true) {
call("this line is 79 chars", "long", "it should", "stay as single line");
}
}
```

- JavaScript: Respect newlines between parameters ([#5260] by [@evilebottnawi])

<!-- prettier-ignore -->
Expand Down

0 comments on commit e2a7472

Please sign in to comment.