swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 8363dbd66e0e4efec78786e28c48c674b0501ef5
parent 555c5c86a73eff665b823b2fde4e47c68a17c384
Author: uriel@soma <unknown>
Date:   Tue, 14 Jul 2009 22:53:23 +0000

Add extra new line between posts to avoid formatting from one post to extend to the next.
Diffstat:
Mapps/blagh/app.rc | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc @@ -76,6 +76,7 @@ fn blagh_body { for(p in `{get_post_list $blagh_root^$blagh_dirs}) { l=`{echo -n $p|sed 's!'$sitedir^'/?(.*)([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'} sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md + echo # Needed extra \n so markdown doesn't mess up the formatting, probably can be done in sed. } } | $formatter }