From mboxrd@z Thu Jan 1 00:00:00 1970 From: mailings at hupie.com (Ferry Huberts) Date: Tue, 21 Feb 2012 13:13:29 +0100 Subject: [PATCH v2 1/3] highlight: add workaround for empty lines getting filtered out Message-ID: <1329826411-6301-1-git-send-email-mailings@hupie.com> From: Ferry Huberts Saw this happening on a CentOS 6.2 box Signed-off-by: Ferry Huberts --- filters/syntax-highlighting.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/filters/syntax-highlighting.sh b/filters/syntax-highlighting.sh index 6283ce9..c930e07 100755 --- a/filters/syntax-highlighting.sh +++ b/filters/syntax-highlighting.sh @@ -42,4 +42,5 @@ EXTENSION="${BASENAME##*.}" # map Makefile and Makefile.* to .mk [ "${BASENAME%%.*}" == "Makefile" ] && EXTENSION=mk -exec highlight --force -f -I -X -S $EXTENSION 2>/dev/null +# the sed with   is a workaround for empty lines getting filtered out +exec highlight --force -f -I -X -S $EXTENSION 2>/dev/null | sed -r 's/^[[:space:]]*$/\ /' -- 1.7.7.6