From f1069eb1db0391d23ca92d40e1c22ad1046b28f1 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 23 Apr 2021 15:42:38 -0400 Subject: [PATCH] make redo output cleaner Signed-off-by: Christine Dodrill --- default.mobi.do | 2 +- src/wordcount.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default.mobi.do b/default.mobi.do index 12c4bcc..3c44ddb 100644 --- a/default.mobi.do +++ b/default.mobi.do @@ -2,4 +2,4 @@ exec >&2 redo-ifchange ./out/$2.epub -ebook-convert ./out/$2.epub ./out/$2.mobi \ No newline at end of file +ebook-convert ./out/$2.epub ./out/$2.mobi >/dev/null \ No newline at end of file diff --git a/src/wordcount.lua b/src/wordcount.lua index 517e4ac..74b87a2 100644 --- a/src/wordcount.lua +++ b/src/wordcount.lua @@ -25,6 +25,6 @@ wordcount = { function Pandoc(el) -- skip metadata, just count body: pandoc.walk_block(pandoc.Div(el.blocks), wordcount) - print(words .. " words in body") + print(" " .. words .. " words in body") os.exit(0) end