diff options
-rwxr-xr-x | notYetAnotherWiki.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 839065c..bf9791f 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua | |||
@@ -84,7 +84,7 @@ for name, file in pairs(Files) do | |||
84 | end | 84 | end |
85 | 85 | ||
86 | -- Start the file parsing here, coz we need it's metadata. | 86 | -- Start the file parsing here, coz we need it's metadata. |
87 | print('Parsing ' .. name .. '.md') | 87 | -- print('Parsing ' .. name .. '.md') |
88 | local h = io.open(name .. '.md', 'r') | 88 | local h = io.open(name .. '.md', 'r') |
89 | -- TODO - should bail here on error? | 89 | -- TODO - should bail here on error? |
90 | if nil ~= h then file.cm = h:read('*a') ; h:close() else print('oops! No such name ' .. name) end | 90 | if nil ~= h then file.cm = h:read('*a') ; h:close() else print('oops! No such name ' .. name) end |
@@ -306,7 +306,7 @@ for name, file in pairs(Files) do | |||
306 | -- Write the file. | 306 | -- Write the file. |
307 | if '' ~= result then | 307 | if '' ~= result then |
308 | local base = name .. '.HTML' | 308 | local base = name .. '.HTML' |
309 | print('From ' .. name .. '.md -> ' .. base) | 309 | -- print('From ' .. name .. '.md -> ' .. base) |
310 | local a, e = io.open(base, 'w') | 310 | local a, e = io.open(base, 'w') |
311 | if nil == a then print('Could not open ' .. base .. ' - ' .. e) else | 311 | if nil == a then print('Could not open ' .. base .. ' - ' .. e) else |
312 | a:write(result) | 312 | a:write(result) |