From c68026a748c06640609b3ce8110cd026f1904726 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 13 Apr 2024 17:06:19 -0500 Subject: [PATCH] remove empty/trailing spaces --- .github/actions/markdown2gempost/convert-dir.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/markdown2gempost/convert-dir.sh b/.github/actions/markdown2gempost/convert-dir.sh index 08f0c37..0f8ea76 100644 --- a/.github/actions/markdown2gempost/convert-dir.sh +++ b/.github/actions/markdown2gempost/convert-dir.sh @@ -35,6 +35,9 @@ for file in "$input_dir"/*.md; do fi fi + # Remove empty/trailing spaces + sed -i 's/[ \t]*$//' "$input_dir/$file" + # Convert Markdown to GMI /usr/local/bin/md2gmi -i "$input_dir/$file" -o "$output_dir/${file%.md}.gmi" # Remove first line (and blank lines which follow) from output file (gempost will render the title)