Skip to content

Commit 64f5d78

Browse files
committed
fix: generate_json_schema.lua removes final newline
Problem: "generate_json_schema.lua" removes final newline from "schema/packspec_schema.json". Solution: Append a newline before writing.
1 parent 714bb92 commit 64f5d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate_json_schema.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- local cjson = require('cjson')
44
local schema = require('packspec.schema')
55
local format_json = require('utils.format_cjson')
6-
local encoded_json = format_json(schema, "\n", " ")
6+
local encoded_json = format_json(schema, "\n", " ")..'\n'
77

88
local file = io.open('schema/packspec_schema.json', 'w')
99

0 commit comments

Comments
 (0)