From: Daniel Kolesa Date: Wed, 13 Apr 2016 12:21:53 +0000 (+0100) Subject: docgen: don't let EFL docs affect dokuwiki markup X-Git-Tag: upstream/1.20.0~6364^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abb4e758d6057b2047d5f89d59e6accae7f4b823;p=platform%2Fupstream%2Fefl.git docgen: don't let EFL docs affect dokuwiki markup --- diff --git a/gendoc.lua b/gendoc.lua index a5b643a..86219dc 100644 --- a/gendoc.lua +++ b/gendoc.lua @@ -336,7 +336,7 @@ local gen_doc_markup = function(str) wbuf[#wbuf + 1] = c c = f() end - buf[#buf + 1] = "''" .. table.concat(wbuf) .. "''" + buf[#buf + 1] = "%%''" .. table.concat(wbuf) .. "''%%" else buf[#buf + 1] = "$" end @@ -355,20 +355,30 @@ local gen_doc_markup = function(str) rbuf[#rbuf] = nil end local title = table.concat(rbuf) + buf[#buf + 1] = "%%" buf[#buf + 1] = Buffer():write_link(gen_ref_link(title), title):finish() + buf[#buf + 1] = "%%" if ldot then buf[#buf + 1] = "." end else buf[#buf + 1] = "@" end + elseif c == "%" then + c = f() + if c == "%" then + c = f() + buf[#buf + 1] = "%%%%%%" + else + buf[#buf + 1] = "%" + end else buf[#buf + 1] = c c = f() end end - return table.concat(buf) + return "%%" .. table.concat(buf) .. "%%" end local gen_doc_par = function(str)