summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-17 13:54:41 +0200
committermadmaxoft <github@xoft.cz>2013-10-17 13:54:41 +0200
commit1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4 (patch)
tree08e8015dab8382d511998eed87fcaaccde4c4d7a /MCServer
parentAPIDump: Documented HOOK_WEATHER_CHANGED. (diff)
downloadcuberite-1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4.tar
cuberite-1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4.tar.gz
cuberite-1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4.tar.bz2
cuberite-1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4.tar.lz
cuberite-1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4.tar.xz
cuberite-1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4.tar.zst
cuberite-1ef2e0e6a6cb63d9c58c56a59679c6a5ce7f76d4.zip
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>