summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-12 20:17:26 +0200
committermadmaxoft <github@xoft.cz>2013-09-12 20:17:26 +0200
commit435a8197c1235ef66e2a1c32d587da6093123b9c (patch)
treefef767bfbb5249a4a32ed13a6960c898082ffb6e /MCServer/Plugins/APIDump/main.lua
parentAPIDump: Added parsing for older wiki format, "Class Definition" header. (diff)
downloadcuberite-435a8197c1235ef66e2a1c32d587da6093123b9c.tar
cuberite-435a8197c1235ef66e2a1c32d587da6093123b9c.tar.gz
cuberite-435a8197c1235ef66e2a1c32d587da6093123b9c.tar.bz2
cuberite-435a8197c1235ef66e2a1c32d587da6093123b9c.tar.lz
cuberite-435a8197c1235ef66e2a1c32d587da6093123b9c.tar.xz
cuberite-435a8197c1235ef66e2a1c32d587da6093123b9c.tar.zst
cuberite-435a8197c1235ef66e2a1c32d587da6093123b9c.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/main.lua')
-rw-r--r--MCServer/Plugins/APIDump/main.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 4a2582a34..0fb6893b5 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -390,6 +390,10 @@ function ConvertWikiToDesc()
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
else
+ -- Replace wiki-style bullets with <li> tag:
+ if (line:find("^ +%*")) then
+ line = line:gsub("^ +%* *", "<li>") .. "</li>";
+ end
Desc = Desc .. AddNextTime .. line .. "\n";
AddNextTime = "";
end