preserve backslashes when posting/editing

ask "read" not to process backslash sequences when reading user-edited file
and leave them as is, instead
This commit is contained in:
Alexey Shpakovsky 2014-03-19 23:05:11 +01:00
parent daf456b956
commit 2291238120

2
bb.sh
View File

@ -496,7 +496,7 @@ create_html_page() {
parse_file() { parse_file() {
# Read for the title and check that the filename is ok # Read for the title and check that the filename is ok
title="" title=""
while IFS='' read line; do while IFS='' read -r line; do
if [[ "$title" == "" ]]; then if [[ "$title" == "" ]]; then
# set title and # set title and
# remove extra <p> and </p> added by markdown # remove extra <p> and </p> added by markdown