From 132b51714b02820c5b5fe1f42037780f128ec084 Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Sun, 9 Mar 2014 16:47:32 +0100 Subject: [PATCH] Preserve line indentation in HTML file while rebuilding it --- bb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bb.sh b/bb.sh index 981358a..c3b6383 100755 --- a/bb.sh +++ b/bb.sh @@ -492,7 +492,7 @@ create_html_page() { parse_file() { # Read for the title and check that the filename is ok title="" - while read line; do + while IFS='' read line; do if [[ "$title" == "" ]]; then # set title and # remove extra

and

added by markdown @@ -732,7 +732,7 @@ rebuild_tags() { else get_html_file_content 'entry' 'entry' <$i >> "$tmpfile" fi - while read line; do + while IFS='' read line; do if [[ "$line" = "

$template_tags_line_header"* ]]; then # 'split' tags by commas echo "$line" | cut -c 10- | while IFS="," read -a tags; do