From c590b5b63a45d6decbc9cf02f291eb13270e8bb7 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Mon, 20 Jan 2025 18:45:11 +1000 Subject: Typo-- --- notYetAnotherWiki.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 90c8514..7268170 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -105,7 +105,7 @@ for name, file in pairs(Files) do -- I need cmark-gfm, coz lcmark doesn't support tables and stuff, it only does basic cmark. local out = '' h = io.popen('if which cmark-gfm ; then echo "found" ; fi | tail -n 1') - if nil ~= h then out = h:read('a') ; h:close() end + if nil ~= h then out = h:read('*a') ; h:close() end if 'found\n' == out then -- Have to strip out the metadata first, coz cmark-gfm doesn't grok that. h = io.popen('cp "' .. name .. '.md" "' .. name .. '02" ; csplit -ksz -f "' .. name .. '" "' .. name .. '.md" "/^---$/+1" "{1}" 2>/dev/null ; rm "' .. name .. '00" ; rm "' .. name .. '01" 2>/dev/null') -- cgit v1.1