APIDump: Processing wiki-style bullets (" * ") into <li> tag
This commit is contained in:
parent
b0c4f22e4c
commit
435a8197c1
@ -390,6 +390,10 @@ function ConvertWikiToDesc()
|
|||||||
if (line == "") then
|
if (line == "") then
|
||||||
AddNextTime = "</p>\n\t\t<p>"; -- Replace empty lines with paragraph delimiters; add only when there's a followup text on next line
|
AddNextTime = "</p>\n\t\t<p>"; -- Replace empty lines with paragraph delimiters; add only when there's a followup text on next line
|
||||||
else
|
else
|
||||||
|
-- Replace wiki-style bullets with <li> tag:
|
||||||
|
if (line:find("^ +%*")) then
|
||||||
|
line = line:gsub("^ +%* *", "<li>") .. "</li>";
|
||||||
|
end
|
||||||
Desc = Desc .. AddNextTime .. line .. "\n";
|
Desc = Desc .. AddNextTime .. line .. "\n";
|
||||||
AddNextTime = "";
|
AddNextTime = "";
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user