From ebf0454da201abf62935b1110bc8445c7f3d0eb5 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Mon, 6 Mar 2023 23:38:38 +0100 Subject: [PATCH] Create documentation JSON correctly --- src/scripting/scriptengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/scriptengine.cpp b/src/scripting/scriptengine.cpp index 6c740cb7f0..83098a1900 100644 --- a/src/scripting/scriptengine.cpp +++ b/src/scripting/scriptengine.cpp @@ -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 << "}";