changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Still extract tile if 'empty' line after tile contains spaces.

changeset 614: 850564611002
parent 613: 8be710ed60ec
child 615: e4b554b1de81
author: Uriel <u@berlinblue.org>
date: Tue, 19 Jan 2010 00:28:25 +0000
files: bin/werclib.rc
description: Still extract tile if 'empty' line after tile contains spaces.
     1.1--- a/bin/werclib.rc	Mon Dec 07 05:38:42 2009 +0000
     1.2+++ b/bin/werclib.rc	Tue Jan 19 00:28:25 2010 +0000
     1.3@@ -94,7 +94,7 @@
     1.4 # File title extraction
     1.5 fn get_md_title {
     1.6     #sed 's/^(................................................................[^ ]*).*$/\1/g; 1q' < $1 
     1.7-    sed -n -e '1N; /^.*\n===*$/N; /.*\n===*\n$/!b' -e 's/\n==*\n//p' < $1
     1.8+    sed -n -e '1N; /^.*\n===*$/N; /.*\n===*\n *$/!b' -e 's/\n==*\n//p' < $1
     1.9 }
    1.10 
    1.11 fn get_html_title {