mmm... it's actually not cool to have all these blank lines in generated html, fixed that.

This commit is contained in:
p4bl0 2011-10-29 00:08:31 +02:00
parent 8ff244ae85
commit 198bb426fd
1 changed files with 6 additions and 3 deletions

View File

@ -295,7 +295,8 @@ generate_article() {
replace_str "page_title" "$title" | \
replace_str "blog_url" "$blog_url" | \
replace_commit_info "-1" | \
replace_article_info "$art" > "$public_dir/$art.html"
replace_article_info "$art" | \
sed "/^[[:space:]]*$/d" > "$public_dir/$art.html"
}
regenerate_previous_and_next_article_maybe() {
@ -367,7 +368,8 @@ if [ $modification -gt 0 ]; then
replace_empty_article_info | \
replace_str "page_title" "archives" | \
replace_str "blog_url" "$blog_url" | \
replace_commit_info "-1" > "$public_dir/archives.html"
replace_commit_info "-1" | \
sed "/^[[:space:]]*$/d" > "$public_dir/archives.html"
echo "done."
echo -n "[fugitive] Generating $public_dir/feed.xml... "
last_5_articles=`mktemp fugitiveXXXXXX`
@ -380,7 +382,8 @@ if [ $modification -gt 0 ]; then
replace_foreach "commit" "$last_5_commits" | \
replace_str "page_title" "feed" | \
replace_str "blog_url" "$blog_url" | \
replace_commit_info "-1" > "$public_dir/feed.xml"
replace_commit_info "-1" | \
sed "/^[[:space:]]*$/d" > "$public_dir/feed.xml"
echo "done."
rm "$last_5_articles" "$last_5_commits"
echo -n "[fugitive] Using last published article as index page... "