summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 22801b1e5..92425119e 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -867,9 +867,9 @@ function WriteHtmlHook(a_Hook)
f:write("</pre>\n\n");
local Examples = a_Hook.CodeExamples or {};
for i, example in ipairs(Examples) do
- f:write(" <h2>" .. example.Title .. "</h2>\n");
- f:write(" <p>" .. example.Desc .. "</p>\n\n");
- f:write(" <pre class=\"prettyprint lang-lua\">" .. example.Code .. "\n </pre>\n\n");
+ f:write(" <h2>" .. (example.Title or "<i>missing Title</i>") .. "</h2>\n");
+ f:write(" <p>" .. (example.Desc or "<i>missing Desc</i>") .. "</p>\n\n");
+ f:write(" <pre class=\"prettyprint lang-lua\">" .. (example.Code or "<i>missing Code</i>") .. "\n </pre>\n\n");
end
f:write([[ </div>
</body>