Create documentation JSON correctly

This commit is contained in:
Alexander Bock
2023-03-06 23:38:38 +01:00
parent 8c7c932c78
commit ebf0454da2

View File

@@ -115,7 +115,7 @@ namespace {
json << fmt::format(replStr, "returnType", escapedJson(f.returnType));
json << fmt::format(replStr, "help", escapedJson(f.helpText));
json << fmt::format(
"\"sourceLocation\": {{ \"file\": {}, \"line\": {} }}",
"\"sourceLocation\": {{ \"file\": \"{}\", \"line\": {} }}",
escapedJson(f.sourceLocation.file), f.sourceLocation.line
);
json << "}";