diff options
author | Joel Challis <git@zvecr.com> | 2022-06-10 11:44:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 11:44:23 +0100 |
commit | 7baf9b3f357abe314fcd02e01c814f9516d66e89 (patch) | |
tree | 91598b72a23500f17e081601d56fcb2ef1886d55 /lib | |
parent | d8ace624c8e6a3e5e49ad5f612f5222cb766542a (diff) | |
download | qmk_firmware-7baf9b3f357abe314fcd02e01c814f9516d66e89.tar.gz qmk_firmware-7baf9b3f357abe314fcd02e01c814f9516d66e89.zip |
Promote label with newlines to lint error (#17347)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/qmk/info.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index 6ff9cba45b..dd753f328c 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py @@ -26,13 +26,6 @@ def _valid_community_layout(layout): return (Path('layouts/default') / layout).exists() -def _remove_newlines_from_labels(layouts): - 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] - - def info_json(keyboard): """Generate the info.json data for a specific keyboard. """ @@ -111,9 +104,6 @@ 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 - _remove_newlines_from_labels(layouts) - return info_data |