Still extract tile if 'empty' line after tile contains spaces.
This commit is contained in:
parent
83ed78e39e
commit
7dae66e13e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user