From dfca67abe843100952700d31e41d6c43bea5c2eb Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 30 Nov 2014 17:29:17 -0500 Subject: [PATCH 1/3] :thoughts-fmt now forwarding options to old formatter --- tools/thoughts-fmt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/thoughts-fmt b/tools/thoughts-fmt index f04008f..45009e2 100755 --- a/tools/thoughts-fmt +++ b/tools/thoughts-fmt @@ -22,9 +22,10 @@ fmt-old() { - exec "$msgfmt_default" "$@" + exec "$msgfmt_default" "${all_args[@]}" } +declare -a all_args="$@" while getopts nP opt; do case "$opt" in From 7c8604f82e7dd4f213603ff5f5f9195dbb8d7742 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 30 Nov 2014 17:29:27 -0500 Subject: [PATCH 2/3] :pandoc smart output --- tools/thoughts-fmt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/thoughts-fmt b/tools/thoughts-fmt index 45009e2..c1bf15a 100755 --- a/tools/thoughts-fmt +++ b/tools/thoughts-fmt @@ -51,5 +51,5 @@ test "$timestamp" -gt "$md_cutoff" \ || fmt-old # it's just that simple. -exec pandoc -fmarkdown -thtml +exec pandoc -S -fmarkdown -thtml From 9ad73dc0deed48b34afb701281aa195be42b7a7e Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 30 Nov 2014 17:35:24 -0500 Subject: [PATCH 3/3] :pandoc html5 output --- tools/thoughts-fmt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/thoughts-fmt b/tools/thoughts-fmt index c1bf15a..f95f64f 100755 --- a/tools/thoughts-fmt +++ b/tools/thoughts-fmt @@ -51,5 +51,5 @@ test "$timestamp" -gt "$md_cutoff" \ || fmt-old # it's just that simple. -exec pandoc -S -fmarkdown -thtml +exec pandoc -S -fmarkdown -thtml5