ref: afc7c414f820d8ad8722161ac722a747a0f9da2e
parent: 1cf6db0d4620636d69f35d905f24a4ae690ea2ca
author: Uriel <[email protected]>
date: Mon Jan 18 19:28:25 EST 2010
Still extract tile if 'empty' line after tile contains spaces.
--- a/bin/werclib.rc
+++ b/bin/werclib.rc
@@ -94,7 +94,7 @@
# 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 {