главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
diff options
context:
space:
mode:
authorMatt Traudt <matt@pc-linux.(none)>2014-02-12 20:25:47 -0600
committerMatt Traudt <matt@pc-linux.(none)>2014-02-12 20:25:47 -0600
commit64825ef6f70a5e972c458b7bece6f38024d83f60 (patch)
tree189611ae0b76558eaa80b38d9f143c59ec3f1e24 /bb.sh
parent72b32a918f2f0fcd028fd0a48832b6f65d713e0f (diff)
Possible fix for extra brackets
Diffstat (limited to 'bb.sh')
-rwxr-xr-xbb.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bb.sh b/bb.sh
index 665622f..7dc429c 100755
--- a/bb.sh
+++ b/bb.sh
@@ -360,7 +360,7 @@ create_html_page() {
echo '<!-- entry begin -->' >> "$filename" # marks the beginning of the whole post
echo '<h3><a class="ablack" href="'$global_url/$file_url'">' >> "$filename"
# remove possible <p>'s on the title because of markdown conversion
- echo "$(echo "$title" | sed 's/\<\/*p\>//g')" >> "$filename"
+ echo "$(echo "$title" | sed 's/<\/*p>//g')" >> "$filename"
echo '</a></h3>' >> "$filename"
if [[ "$timestamp" == "" ]]; then
echo '<div class="subtitle">'$(LC_ALL=$date_locale date +"$date_format")' &mdash; ' >> "$filename"
@@ -401,7 +401,7 @@ parse_file() {
if [[ "$title" == "" ]]; then
title="$line"
# remove extra <p> and </p> added by markdown
- filename="$(echo $title | sed 's/\<\/*p\>//g' | tr [:upper:] [:lower:])"
+ filename="$(echo $title | sed 's/<\/*p>//g' | tr [:upper:] [:lower:])"
filename="$(echo $filename | sed 's/\ /-/g')"
filename="$(echo $filename | tr -dc '[:alnum:]-')" # html likes alphanumeric
filename="$filename.html"