mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
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
This commit is contained in:
commit
4e13a16029
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user