summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-14 08:41:48 +0200
committermadmaxoft <github@xoft.cz>2013-09-14 08:41:48 +0200
commit694878d2e87bf1c3dcd7cd4fce76532483b905a1 (patch)
treeffd7d9056c7fd4c44de60d796e731fd07286c9b6 /MCServer/Plugins/APIDump/main.lua
parentAPIDump: Added special-function renaming (constructor, operators). (diff)
downloadcuberite-694878d2e87bf1c3dcd7cd4fce76532483b905a1.tar
cuberite-694878d2e87bf1c3dcd7cd4fce76532483b905a1.tar.gz
cuberite-694878d2e87bf1c3dcd7cd4fce76532483b905a1.tar.bz2
cuberite-694878d2e87bf1c3dcd7cd4fce76532483b905a1.tar.lz
cuberite-694878d2e87bf1c3dcd7cd4fce76532483b905a1.tar.xz
cuberite-694878d2e87bf1c3dcd7cd4fce76532483b905a1.tar.zst
cuberite-694878d2e87bf1c3dcd7cd4fce76532483b905a1.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 446763905..e7f652bd5 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -349,7 +349,9 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
-- Make a link out of anything with the special linkifying syntax {{link|title}}
local function LinkifyString(a_String)
- return (a_String:gsub("{{([^|]*)|([^}]*)}}", "<a href=\"%1.html\">%2</a>")); -- The extra parenthesis remove the extra values returned by gsub()
+ 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
-- Writes a table containing all functions in the specified list, with an optional "inherited from" header when a_InheritedName is valid