diff options
author | Alexey Shpakovsky <alexey@shpakovsky.ru> | 2014-03-09 16:47:32 +0100 |
---|---|---|
committer | Aleksei Shpakovskii <alekseis@opera.com> | 2014-03-10 19:50:05 +0100 |
commit | 132b51714b02820c5b5fe1f42037780f128ec084 (patch) | |
tree | 2e20e87d5dc673ac45ca225e6d49a6f630e96ddb /bb.sh | |
parent | eef08c1984dafb8d292925d3ab56464e9f12e2b1 (diff) |
Preserve line indentation in HTML file while rebuilding it
Diffstat (limited to 'bb.sh')
-rwxr-xr-x | bb.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 <p> and </p> 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" = "<p>$template_tags_line_header"* ]]; then # 'split' tags by commas echo "$line" | cut -c 10- | while IFS="," read -a tags; do |