diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2021-08-19 15:21:54 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2021-08-19 15:21:54 +0000 |
commit | 4e13a160297b41450a8bf1134a2e68d88fec6f92 (patch) | |
tree | 30314bc82e7791b3ab3085a05aad6127cc11cc10 | |
parent | 94ef9408f7aab151e0315a44f13a135d624df41b (diff) | |
parent | 0d236c39ee48487393ac800dbb184efcf7457a06 (diff) | |
download | glib-4e13a160297b41450a8bf1134a2e68d88fec6f92.tar.gz |
Merge branch 'backport-2174-newline-glib-2-68' into 'glib-2-68'
Backport !2174 “data-to-c.py: generate new-line at the end of the file” to glib-2-68
See merge request GNOME/glib!2175
-rwxr-xr-x | gio/data-to-c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/data-to-c.py b/gio/data-to-c.py index d8854b417..1724f7dd1 100755 --- a/gio/data-to-c.py +++ b/gio/data-to-c.py @@ -10,7 +10,7 @@ with open(sys.argv[1], "rb") as f: b = [r"\x{:02x}".format(ord(c)) for c in in_data] out_data = 'const char {0}[] = "'.format(sys.argv[2]) -out_data += "".join(b) + '";' +out_data += "".join(b) + '";\n' with open(sys.argv[3], "w") as f: f.write(out_data) |