Explorar o código

Added a comment

Matt Traudt %!s(int64=11) %!d(string=hai) anos
pai
achega
b2b87e584c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      bb.sh

+ 2 - 1
bb.sh

@@ -399,8 +399,9 @@ parse_file() {
     title=""
     while read line; do
         if [[ "$title" == "" ]]; then
-            title=$(echo "$line" | sed 's/<\/*p>//g')
+            # set title and
             # remove extra <p> and </p> added by markdown
+            title=$(echo "$line" | sed 's/<\/*p>//g')
             filename="$(echo $title | tr [:upper:] [:lower:])"
             filename="$(echo $filename | sed 's/\ /-/g')"
             filename="$(echo $filename | tr -dc '[:alnum:]-')" # html likes alphanumeric