mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 11:07:38 +03:00
Add newline to end of generated file
This commit is contained in:
parent
012731c3be
commit
1f499a7c6c
2
setup.py
2
setup.py
@ -843,7 +843,7 @@ def init_env_from_args(args: Options, native_optimizations: bool = False) -> Non
|
||||
def build_ref_map() -> str:
|
||||
m = runpy.run_path('docs/extract-rst-targets.py')
|
||||
d = m['main']()
|
||||
h = 'static const char docs_ref_map[] = {\n' + textwrap.fill(', '.join(map(str, bytearray(json.dumps(d).encode('utf-8'))))) + '\n};'
|
||||
h = 'static const char docs_ref_map[] = {\n' + textwrap.fill(', '.join(map(str, bytearray(json.dumps(d).encode('utf-8'))))) + '\n};\n'
|
||||
dest = 'kitty/docs_ref_map_generated.h'
|
||||
q = ''
|
||||
with suppress(FileNotFoundError), open(dest) as f:
|
||||
|
Loading…
Reference in New Issue
Block a user