From cdb7d836f3d21e8da2769a6bc3b531968ced3192 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 13 Jul 2021 14:25:49 +0200 Subject: check-style: Fix off-by-one error Checking the end line, we should account that the whole chunk was already displaced by the code comment that turns uncrustify on, so we are off by one here. --- check-style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check-style.py') diff --git a/check-style.py b/check-style.py index a4cf85612..4b59f83ae 100755 --- a/check-style.py +++ b/check-style.py @@ -46,7 +46,7 @@ def reformat_chunks(chunks, rewrite): tmp.write(bytes(line, 'utf-8')) - if i == end - 1: + if i == end - 2: tmp.write(b'/** *INDENT-OFF* **/\n') tmp.seek(0) -- cgit v1.2.1