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"