summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@telfort.nl>2023-04-27 16:21:29 +0200
committerBenno Schulenberg <bensberg@telfort.nl>2023-04-30 18:03:15 +0200
commit6d7067ed281cc48e9dd85066ea0d65812619a3e4 (patch)
tree7fa942a55b0d76f61084fca202940fd2f838f244
parente9118545c07e6ecc678bd7e338b5a69b444ffbf4 (diff)
downloadxkeyboard-config-6d7067ed281cc48e9dd85066ea0d65812619a3e4.tar.gz
build: allow any blanks between file and variant names, not just tabs
-rwxr-xr-xrules/compat/map-variants.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/rules/compat/map-variants.py b/rules/compat/map-variants.py
index b470de7..af1b7ea 100755
--- a/rules/compat/map-variants.py
+++ b/rules/compat/map-variants.py
@@ -27,9 +27,8 @@ class Layout(object):
def read_file(path):
'''Returns a list of two-layout tuples [(layout1, layout2), ...]'''
- # This parses both input files, one with two elements, one with four elements,
- # all separated by tabs
- pattern = re.compile(r'([^\t]+)\s+([^\t]+)\s*([^\t]*)\s*([^\t]*)')
+ # This parses both input files, one with two elements, one with four.
+ pattern = re.compile(r'([^\s]+)\s+([^\s]+)\s*([^\s]*)\s*([^\s]*)')
layouts = []
for line in open(path):