docs: strip trailing whitespace in generated files

master
Mike Frysinger 2021-04-21 00:42:05 -04:00
parent 1e47a89a65
commit ef2b468a2d
1 changed files with 7 additions and 0 deletions

View File

@ -75,5 +75,12 @@ $(nd) --rebuild --rebuild-output --documented-only \
--project project/ \
-s Default libgd
# Strip whitespace.
sed -i.tmp -E \
-e 's:[[:space:]]+$::' \
-e '${/^[[:space:]]*$/d}' \
project/*.txt
rm project/*.txt.tmp
# And cleanup the temp files.
rm -rf Data tmp