summaryrefslogtreecommitdiff
path: root/util/check-format.pl
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-09-28 09:18:01 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-09-30 20:51:23 +0200
commit13a574d8bb2523181f8150de49bc041c9841f59d (patch)
treed901940756cad14da1653880508e96e20ed14431 /util/check-format.pl
parent8e655da0225eb399675aaa05f4ba36e9347043ca (diff)
downloadopenssl-new-13a574d8bb2523181f8150de49bc041c9841f59d.tar.gz
check-format.pl: Allow nested indentation of labels (not only at line pos 1)
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13019)
Diffstat (limited to 'util/check-format.pl')
-rwxr-xr-xutil/check-format.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/check-format.pl b/util/check-format.pl
index 8852f3df8c..3230dc31fb 100755
--- a/util/check-format.pl
+++ b/util/check-format.pl
@@ -798,7 +798,7 @@ while (<>) { # loop over all lines of all input files
$local_offset = -INDENT_LEVEL;
} else {
if (m/^([\s@]*)(\w+):/) { # (leading) label, cannot be "default"
- $local_offset = -INDENT_LEVEL + 1 ;
+ $local_offset = -INDENT_LEVEL;
$has_label = 1;
}
}