From 3d0522192cb1b45bb2048e2234d8968c1a09a94c Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Mon, 9 Nov 2020 11:37:32 +0100 Subject: [PATCH] fix bug in hacky script --- engine/org2gemini.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/org2gemini.sh b/engine/org2gemini.sh index 3d50f5e..2a810a5 100755 --- a/engine/org2gemini.sh +++ b/engine/org2gemini.sh @@ -5,4 +5,5 @@ cd "$(git rev-parse --show-toplevel)" || exit 1 src="$1" dst="$2" -./engine/org2gemini_step1.sh "$src" | perl -pe 's#\[\[([^]]*)\]\[([^]]*)\]\]#\n=> $1 $2#g;s#^\* *$##;s#=> file:([^ ]*)\.org#=> $1.gmi#g;s#\[\[(file:)?([^]]*)\]\]#=> $2#g' > "$dst" +./engine/org2gemini_step1.sh "$src" | \ + perl -pe 's#\[\[([^]]*)\]\[([^]]*)\]\]#\n=> $1 $2#g;s#=> file:([^ ]*)\.org#=> $1.gmi#g;s#\[\[(file:)?([^]]*)\]\]#=> $2#g;s#^\* *##' > "$dst"