diff --git a/bin/werclib.rc b/bin/werclib.rc index 470d6d7..8e272ef 100644 --- a/bin/werclib.rc +++ b/bin/werclib.rc @@ -94,7 +94,7 @@ fn get_md_file_attr { # File title extraction fn get_md_title { #sed 's/^(................................................................[^ ]*).*$/\1/g; 1q' < $1 - sed -n -e '1N; /^.*\n===*$/N; /.*\n===*\n$/!b' -e 's/\n==*\n//p' < $1 + sed -n -e '1N; /^.*\n===*$/N; /.*\n===*\n *$/!b' -e 's/\n==*\n//p' < $1 } fn get_html_title {