summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-15 20:29:42 +0200
committermadmaxoft <github@xoft.cz>2013-09-15 20:29:42 +0200
commit518e61e75124d174552c11747e940366d5f14fbb (patch)
treed17300c5dbc43ae02e1cb4b819a1fb2d597f16c5 /MCServer/Plugins/APIDump/main.lua
parentFixed cWorld bindings for GetBlockInfo() and GetBlockTypeMeta(). (diff)
downloadcuberite-518e61e75124d174552c11747e940366d5f14fbb.tar
cuberite-518e61e75124d174552c11747e940366d5f14fbb.tar.gz
cuberite-518e61e75124d174552c11747e940366d5f14fbb.tar.bz2
cuberite-518e61e75124d174552c11747e940366d5f14fbb.tar.lz
cuberite-518e61e75124d174552c11747e940366d5f14fbb.tar.xz
cuberite-518e61e75124d174552c11747e940366d5f14fbb.tar.zst
cuberite-518e61e75124d174552c11747e940366d5f14fbb.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 212cd54ed..73acd3e69 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -478,8 +478,8 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
-- Make a link out of anything with the special linkifying syntax {{link|title}}
local function LinkifyString(a_String)
- local txt = a_String:gsub("{{([^|]*)|([^}]*)}}", "<a href=\"%1.html\">%2</a>") -- {{link|title}}
- txt = txt:gsub("{{([^|]*)}}", "<a href=\"%1.html\">%1</a>") -- {{LinkAndTitle}}
+ local txt = a_String:gsub("{{([^|}]*)|([^}]*)}}", "<a href=\"%1.html\">%2</a>") -- {{link|title}}
+ txt = txt:gsub("{{([^|}]*)}}", "<a href=\"%1.html\">%1</a>") -- {{LinkAndTitle}}
return txt;
end