remove empty/trailing spaces

This commit is contained in:
John Bowdre 2024-04-13 17:06:19 -05:00
parent 0521ce3e3a
commit c68026a748

View file

@ -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)