1
0

APIDump: Fixed linkification with multiple links in one string.

This commit is contained in:
madmaxoft 2013-09-15 20:29:42 +02:00
parent 9a35c1c150
commit 518e61e751

View File

@ -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