From 78990df4f114c45adc7fd2678ffaedf0c4124d95 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 29 Apr 2013 16:13:59 -0400 Subject: More code cleanup. "local buffer = buffer" and similar optimizations are not needed since lexing the buffer is much more expensive and reaction time is limited by how fast the keyboard can submit key presses. --- doc/markdowndoc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/markdowndoc.lua') diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua index 3abe6217..ea1ba26a 100644 --- a/doc/markdowndoc.lua +++ b/doc/markdowndoc.lua @@ -162,7 +162,7 @@ function M.start(doc) end h[#h + 1] = self end - (require 'lfs').mkdir(M.options.output_dir..'/api') + require('lfs').mkdir(M.options.output_dir..'/api') local navfile = M.options.output_dir..'/api/.nav.md' local f = io_open(navfile, 'wb') write_nav(f, hierarchy) @@ -174,7 +174,7 @@ function M.start(doc) -- Write index.html. template.nav = nav local api_index = M.options.output_dir..'/.api_index.md' - if (require 'lfs').attributes(api_index) then + if require('lfs').attributes(api_index) then local p = io_popen('markdown -f toc -T "'..api_index..'"') template.toc, template.main = p:read('*all'):match('^(.-\n\n)(.+)$') p:close() -- cgit v1.2.3