From e7c16291929965a63bbf7335ed79a880159548fa Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 14 Oct 2016 16:06:46 -0400 Subject: [PATCH] Remove trailing spaces --- doc-to-md.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc-to-md.sh b/doc-to-md.sh index ac3fde27a..13d95d7e4 100755 --- a/doc-to-md.sh +++ b/doc-to-md.sh @@ -2,4 +2,7 @@ set -eu -xsltproc tools/docx-to-md.xsl tmp/word/document.xml | fold -w 80 -s > nostarch/chapter02.md +xsltproc tools/docx-to-md.xsl tmp/word/document.xml | \ +fold -w 80 -s | \ +sed -e "s/ *$//" \ +> nostarch/chapter02.md