Browse Source

fix keyboards with apostrophes in their names

pull/12296/head
Zach White 3 years ago
committed by Zach White
parent
commit
6daa204363
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      lib/python/qmk/cli/generate/config_h.py
  2. +1
    -1
      lib/python/qmk/info.py

+ 2
- 2
lib/python/qmk/cli/generate/config_h.py View File

@ -45,7 +45,7 @@ def keyboard_name(keyboard_name):
#ifndef PRODUCT
# define PRODUCT %s
#endif // PRODUCT
""" % (keyboard_name, keyboard_name)
""" % (keyboard_name.replace("'", ""), keyboard_name.replace("'", ""))
def manufacturer(manufacturer):
@ -55,7 +55,7 @@ def manufacturer(manufacturer):
#ifndef MANUFACTURER
# define MANUFACTURER %s
#endif // MANUFACTURER
""" % (manufacturer)
""" % (manufacturer.replace("'", ""))
def direct_pins(direct_pins):


+ 1
- 1
lib/python/qmk/info.py View File

@ -345,7 +345,7 @@ def _merge_layouts(info_data, new_info_data):
else:
# Pull in layouts that have matrix data
missing_matrix = False
for key in layout_json['layout']:
for key in layout_json.get('layout', {}):
if 'matrix' not in key:
missing_matrix = True


Loading…
Cancel
Save