Skip to content

Commit 20549fd

Browse files
Fix cmake_format
Signed-off-by: Pawel Cieslak <[email protected]>
1 parent 7a5e0e1 commit 20549fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/format/cmake_format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
#
3-
# Copyright (C) 2020 Intel Corporation
3+
# Copyright (C) 2020-2021 Intel Corporation
44
#
55
# SPDX-License-Identifier: MIT
66
#
@@ -30,6 +30,7 @@ def remove_extra_spaces(line):
3030
line = re.sub(r'\)AND\(', ') AND (', line)
3131
line = re.sub(r'\)OR\(', ') OR (', line)
3232
line = re.sub(r'NOT\(', 'NOT (', line)
33+
line = re.sub(r' *\) *(?=[A-Z])', ') ', line)
3334
return line
3435

3536

0 commit comments

Comments
 (0)