Still extract tile if 'empty' line after tile contains spaces. - swerc - anselm's simpler werc fork
(HTM) git clone git://git.suckless.org/swerc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 2ba9f1fca7ebd62a0e2f71b728dadc49ab93dc00
(DIR) parent af15b86cd40e58d7c0d17732c9f935aec7262a9f
(HTM) Author: Uriel <u@berlinblue.org>
Date: Tue, 19 Jan 2010 00:28:25 +0000
Still extract tile if 'empty' line after tile contains spaces.
Diffstat:
M bin/werclib.rc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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 {