mirror of
https://github.com/jbowdre/capsule.git
synced 2024-11-22 21:22:17 +00:00
remove empty/trailing spaces
This commit is contained in:
parent
0521ce3e3a
commit
c68026a748
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ for file in "$input_dir"/*.md; do
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove empty/trailing spaces
|
||||||
|
sed -i 's/[ \t]*$//' "$input_dir/$file"
|
||||||
|
|
||||||
# Convert Markdown to GMI
|
# Convert Markdown to GMI
|
||||||
/usr/local/bin/md2gmi -i "$input_dir/$file" -o "$output_dir/${file%.md}.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)
|
# Remove first line (and blank lines which follow) from output file (gempost will render the title)
|
||||||
|
|
Loading…
Reference in a new issue