summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-12 20:29:31 +0200
committermadmaxoft <github@xoft.cz>2013-09-12 20:29:31 +0200
commit69060f265629345066f385277bdd60fb4972e958 (patch)
tree18ca5defdef4c1efa6fa378a0945ace907f594f1 /MCServer/Plugins
parentAPIDump: Processing wiki-style bullets (" * ") into <li> tag (diff)
downloadcuberite-69060f265629345066f385277bdd60fb4972e958.tar
cuberite-69060f265629345066f385277bdd60fb4972e958.tar.gz
cuberite-69060f265629345066f385277bdd60fb4972e958.tar.bz2
cuberite-69060f265629345066f385277bdd60fb4972e958.tar.lz
cuberite-69060f265629345066f385277bdd60fb4972e958.tar.xz
cuberite-69060f265629345066f385277bdd60fb4972e958.tar.zst
cuberite-69060f265629345066f385277bdd60fb4972e958.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 0fb6893b5..5d0070be3 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -466,14 +466,13 @@ function ConvertWikiToDesc()
-- Write the info into the output file:
fout:write("\t\t" .. ClassName .. " =\n\t\t{\n\t\t\tDesc = [[" .. Desc .. "]],\n\t\t\tFunctions =\n\t\t\t{\n");
for i, func in ipairs(Functions) do
- LOG(ClassName .. "." .. func.Name);
- fout:write(string.format("\t\t\t\t{ %s = { Params = %q, Return = %q, Notes = %q } },\n",
+ fout:write(string.format("\t\t\t\t%s = { Params = %q, Return = %q, Notes = %q },\n",
func.Name, func.Params, func.Return, func.Notes
));
end
fout:write("\t\t\t},\n\t\t\tConstants =\n\t\t\t{\n");
for i, cons in ipairs(Constants) do
- fout:write(string.format("\t\t\t\t{ %s = { Notes = %q } },\n",
+ fout:write(string.format("\t\t\t\t%s = { Notes = %q },\n",
cons.Name, cons.Notes
));
end