1
0
Fork 0
mirror of https://github.com/nickpoida/og-aws.git synced 2025-02-13 10:21:57 +00:00
og-aws/admin/reformat-gentle.sh
Joshua Levy 5e5be52f99 Gentle formatting fixes we can run more often. (#443)
Fixes a bunch of inadvertently preformatted text due to >4 spaces after a bullet.
2017-05-15 12:58:33 -07:00

16 lines
444 B
Bash
Executable file

#!/bin/bash
# Gently fix common Markdown formatting errors. Should be minimally invasive.
set -e -u -o pipefail
hash repren >/dev/null 2>&1 || {
echo >&2 "repren missing: Install https://github.com/jlevy/repren and re-run"
exit 1
}
cd $(dirname $0)/..
# Extra spaces following a bullet replaced by tab per mkdownfmt convention.
# Leave other stuff alone.
repren --from '^(\s*)([-*])(\s* +\s*)' --to '\1\2\t' README.md CONTRIBUTING.md