From 3e638665486f455d6619011b46ac589b445e8da1 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 29 Oct 2012 10:05:16 -0400 Subject: Updated doc/markdowndoc.lua. --- doc/markdowndoc.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/markdowndoc.lua') diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua index 5e216457..603b4f07 100644 --- a/doc/markdowndoc.lua +++ b/doc/markdowndoc.lua @@ -105,7 +105,9 @@ local function write_list(f, fmt, list) value = value:gsub('^_G%.', '') local link = value..'.html' local module, func = value:match('^(.+)%.([^.]+)$') - if module and func then link = module..'.html'..(func ~= '' and '#'..func or '') end + if module and func then + link = module..'.html'..(func ~= '' and '#'..func or '') + end f:write(string_format(fmt, value, link)) else -- The identifier belongs to the same module. Anchor it. @@ -262,6 +264,7 @@ function M.start(doc) template.toc = template.toc:gsub('()', '%1%2') -- strip params :gsub('([^<]+)', '%1') -- sans serif :gsub('_G.(events.[%w_]+)', '%1') + :gsub('SC_[%u]+', '%0') f = io_open(M.options.output_dir..'/api/'..name..'.html', 'wb') local html = HTML:gsub('%%%(([^)]+)%)', template) f:write(html) -- cgit v1.2.3