From 44e9cd4a03df470adb24b958ae4b9e47ee890315 Mon Sep 17 00:00:00 2001 From: jgirardet Date: Tue, 9 Oct 2018 22:11:47 +0200 Subject: [PATCH] Explicit # fmt: on/off indentation level (#554) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 33cdff3..fa5382c 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,8 @@ original. This slows it down. If you're feeling confident, use *Black* reformats entire files in place. It is not configurable. It doesn't take previous formatting into account. It doesn't reformat -blocks that start with `# fmt: off` and end with `# fmt: on`. It also +blocks that start with `# fmt: off` and end with `# fmt: on`. `# fmt: on/off` +have to be on the same level of indentation. It also recognizes [YAPF](https://github.com/google/yapf)'s block comments to the same effect, as a courtesy for straddling code. -- 2.39.5