summaryrefslogtreecommitdiff
path: root/check-style.py
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-07-13 14:25:49 +0200
committerCarlos Garnacho <carlosg@gnome.org>2021-07-13 14:25:49 +0200
commitcdb7d836f3d21e8da2769a6bc3b531968ced3192 (patch)
tree13a2b16b952534c32c1a6367436b7134acb16767 /check-style.py
parent01aefaa5a4693cd2f1c15fb52d8b0b1875dc6790 (diff)
downloadtracker-cdb7d836f3d21e8da2769a6bc3b531968ced3192.tar.gz
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.
Diffstat (limited to 'check-style.py')
-rwxr-xr-xcheck-style.py2
1 files changed, 1 insertions, 1 deletions
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)