From e2a74727f6fac6204b1714903d9a2f00c5511886 Mon Sep 17 00:00:00 2001 From: Mathieu Letendre-Jauniaux Date: Thu, 11 Apr 2019 13:50:59 -0400 Subject: [PATCH] Document range bugfix in changelog. --- CHANGELOG.unreleased.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 70752e4cb1b8..4855e0989aa6 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -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])