Permalink
Browse files

substitute_tostring() must be called with non-nil 2nd arg on top-level

  • Loading branch information...
1 parent adb551a commit 9deb39b16aa5b295c8de126779a293eaeb3f1ad8 @stevedonovan committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 macro.lua
View
@@ -666,7 +666,7 @@ end
-- @return the cnunk, or nil
-- @return the error, if no chunk
function M.load(src,name,env)
- local res,err = M.substitute_tostring(src)
+ local res,err = M.substitute_tostring(src,'tmp')
if not res then return nil,err end
return loadin(env,res,name)
end

0 comments on commit 9deb39b

Please sign in to comment.