diff options
author | Alexey Shpakovsky <alexey@shpakovsky.ru> | 2014-03-19 23:05:11 +0100 |
---|---|---|
committer | Alexey Shpakovsky <alexey@shpakovsky.ru> | 2014-03-19 23:05:11 +0100 |
commit | 22912381206ded2165a5de0a5ff7d9d073246155 (patch) | |
tree | 02570ca376ba5ebb6bf9304b5bae02dba2b9ea29 | |
parent | daf456b9560be7a01cbc57b03fc800dfbad1a452 (diff) |
preserve backslashes when posting/editing
ask "read" not to process backslash sequences when reading user-edited file
and leave them as is, instead
-rwxr-xr-x | bb.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -496,7 +496,7 @@ create_html_page() { parse_file() { # Read for the title and check that the filename is ok title="" - while IFS='' read line; do + while IFS='' read -r line; do if [[ "$title" == "" ]]; then # set title and # remove extra <p> and </p> added by markdown |