From 1f499a7c6cf77bb71f9079852c0e18b37e44f58b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Aug 2022 11:29:47 +0530 Subject: [PATCH] Add newline to end of generated file --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ed3acf97b..bc2d2e3d8 100755 --- a/setup.py +++ b/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: