From 3d835a6cbaad82557030d068f1f063ff9e861c2f Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Sat, 24 Jul 2010 01:53:09 +0200 Subject: delete blank lines in generated html --- post-commit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'post-commit.sh') diff --git a/post-commit.sh b/post-commit.sh index 565a82a..c33280a 100644 --- a/post-commit.sh +++ b/post-commit.sh @@ -147,7 +147,7 @@ replace_article_info() { } _echo() { - echo -ne "[fugitive] "$* + echo -ne "[fugitive] $*" } for f in $deleted_files; do @@ -168,7 +168,7 @@ for f in $added_files $modified_files; do process_includes | \ replace_commit_info | \ replace_article_info "$art" | \ - cat > "$public_dir/$art.html" + sed "/^\s*$/d" > "$public_dir/$art.html" echo "done." fi done -- cgit v1.2.3