diff options
author | dvs1 | 2025-01-17 15:39:43 +1000 |
---|---|---|
committer | dvs1 | 2025-01-17 15:39:43 +1000 |
commit | 9b142ba77108f15b95b1a5878d2eac318f9890f2 (patch) | |
tree | 000aa028611baa71dfb8ed9c6b17e9091291c6e6 | |
parent | Fix the logo and icon inheritance. (diff) | |
download | notYetAnotherWiki-9b142ba77108f15b95b1a5878d2eac318f9890f2.zip notYetAnotherWiki-9b142ba77108f15b95b1a5878d2eac318f9890f2.tar.gz notYetAnotherWiki-9b142ba77108f15b95b1a5878d2eac318f9890f2.tar.bz2 notYetAnotherWiki-9b142ba77108f15b95b1a5878d2eac318f9890f2.tar.xz |
Don't print two lines per file, silence is golden.
-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) |