shithub: werc

Download patch

ref: 0a5a87fb60420021dab3e98dda14ce7c62a2a301
parent: 9b78e9834bc0de583eb1256fe0da5be3944308c2
author: sl <uriel@engel.se.cat-v.org>
date: Tue Jul 14 18:53:23 EDT 2009

Add extra new line between posts to avoid formatting from one post to extend to the next.

--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -76,6 +76,7 @@
     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 
 }