瀏覽代碼

Merge remote-tracking branch 'origin/master' into develop

QMK Bot 3 年之前
父節點
當前提交
b25218ccc1
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      lib/python/qmk/info.py

+ 6 - 0
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 that the reported matrix size is consistent with the actual matrix size
     _check_matrix(info_data)
     _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
     return info_data