diff options
author | 2015-04-01 16:18:51 -0400 | |
---|---|---|
committer | 2015-04-01 16:18:51 -0400 | |
commit | a3fa0c38360fe3ac4bc602165df55783bd67c592 (patch) | |
tree | e2e6f32b6089a53042cc72473f263abebd90820e /doc/markdowndoc.lua | |
parent | 293b41fea692884922614856427b05901628c657 (diff) | |
download | textadept-a3fa0c38360fe3ac4bc602165df55783bd67c592.tar.gz textadept-a3fa0c38360fe3ac4bc602165df55783bd67c592.zip |
Small code cleanup; doc/markdown.lua
Diffstat (limited to 'doc/markdowndoc.lua')
-rw-r--r-- | doc/markdowndoc.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua index 1b955fd0..b2feef8b 100644 --- a/doc/markdowndoc.lua +++ b/doc/markdowndoc.lua @@ -2,7 +2,7 @@ local ipairs, type = ipairs, type local io_open, io_popen = io.open, io.popen -local string_format, string_rep = string.format, string.rep +local string_format = string.format local table_concat = table.concat -- Markdown doclet for Luadoc. @@ -149,10 +149,9 @@ function M.start(doc) -- Loop over modules, creating Markdown documents. local mdfile = M.options.output_dir..'/api.md' - local f = io_open(mdfile, 'wb') + f = io_open(mdfile, 'wb') for _, name in ipairs(modules) do local module = modules[name] - local filename = filedocs[module.doc] -- Write the header and description. f:write(string_format(MODULE, name, name)) @@ -228,7 +227,7 @@ function M.start(doc) -- Write HTML. template.title = 'Textadept API' template.toc = toc - local p = io_popen('markdown "'..mdfile..'"') + p = io_popen('markdown "'..mdfile..'"') template.main = p:read('*a') p:close() f = io_open(M.options.output_dir..'/api.html', 'wb') |