diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-21 00:42:05 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-21 00:42:05 -0400 |
commit | ef2b468a2d1263cc050c7fb58ecb78bc77781c55 (patch) | |
tree | 8c2aad26fb3f205791975d9bb7ff8fcca8585723 /docs | |
parent | 1e47a89a65d49a9003d8365da4e26a7c1a32aa51 (diff) | |
download | libgd-ef2b468a2d1263cc050c7fb58ecb78bc77781c55.tar.gz |
docs: strip trailing whitespace in generated files
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/naturaldocs/run_docs.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/naturaldocs/run_docs.sh b/docs/naturaldocs/run_docs.sh index 36bd81e..347d06f 100755 --- a/docs/naturaldocs/run_docs.sh +++ b/docs/naturaldocs/run_docs.sh @@ -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 |