From 435a8197c1235ef66e2a1c32d587da6093123b9c Mon Sep 17 00:00:00 2001
From: madmaxoft
Date: Thu, 12 Sep 2013 20:17:26 +0200
Subject: APIDump: Processing wiki-style bullets (" * ") into tag
---
MCServer/Plugins/APIDump/main.lua | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'MCServer/Plugins/APIDump')
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 = "
\n\t\t"; -- Replace empty lines with paragraph delimiters; add only when there's a followup text on next line
else
+ -- Replace wiki-style bullets with
tag:
+ if (line:find("^ +%*")) then
+ line = line:gsub("^ +%* *", "") .. "";
+ end
Desc = Desc .. AddNextTime .. line .. "\n";
AddNextTime = "";
end
--
cgit v1.2.3