summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/python/qmk/info.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py
index c3bbcf3eb0..d81f30438a 100644
--- a/lib/python/qmk/info.py
+++ b/lib/python/qmk/info.py
@@ -99,6 +99,12 @@ def info_json(keyboard):
# Check that the reported matrix size is consistent with the actual matrix size
_check_matrix(info_data)
+ # Remove newline characters from layout labels
+ for layout_name, layout_json in layouts.items():
+ for key in layout_json['layout']:
+ if '\n' in key['label']:
+ key['label'] = key['label'].split('\n')[0]
+
return info_data