Skip to content

Commit b25218c

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents aab3945 + fe0acdd commit b25218c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/python/qmk/info.py

+6
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ def info_json(keyboard):
9999
# Check that the reported matrix size is consistent with the actual matrix size
100100
_check_matrix(info_data)
101101

102+
# Remove newline characters from layout labels
103+
for layout_name, layout_json in layouts.items():
104+
for key in layout_json['layout']:
105+
if '\n' in key['label']:
106+
key['label'] = key['label'].split('\n')[0]
107+
102108
return info_data
103109

104110

0 commit comments

Comments
 (0)