Просмотр исходного кода

preserve backslashes when posting/editing

ask "read" not to process backslash sequences when reading user-edited file
and leave them as is, instead
Alexey Shpakovsky 11 лет назад
Родитель
Сommit
2291238120
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bb.sh

+ 1 - 1
bb.sh

@@ -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