Still extract tile if 'empty' line after tile contains spaces.

This commit is contained in:
Uriel 2010-01-19 00:28:25 +00:00
parent 83ed78e39e
commit 7dae66e13e

View File

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