shithub: werc

Download patch

ref: 2d6dca4856951a521280c8bde46bdaae0719c8ae
parent: a4fde198f16e1a9e136b04fcee01e699ae3fe9dc
author: uriel <uriel@engel.se.cat-v.org>
date: Mon Jan 5 00:49:45 EST 2009

Make tabs/spaces indentation consistent.

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -7,11 +7,11 @@
 
 fn get_lib_file {
     if(test -f $sitedir/_werc/lib/$1)
-    	echo -n $sitedir/_werc/lib/$1
+        echo -n $sitedir/_werc/lib/$1
     if not if(! ~ $#masterSite 0 && test -f $sitesdir/$masterSite/_werc/lib/$1)
-    	echo -n $sitesdir/$masterSite/_werc/lib/$1
+        echo -n $sitesdir/$masterSite/_werc/lib/$1
     if not if(test -f lib/$1)
-    	echo -n lib/$1
+        echo -n lib/$1
 }
 
 # Title
@@ -228,9 +228,9 @@
 
 # Set Page title
 if(~ $pageTitle '')
-	pageTitle=$siteTitle^' '^$siteSubTitle
+    pageTitle=$siteTitle^' '^$siteSubTitle
 if not
-	pageTitle=$"pageTitle^' | '^$"siteTitle^' '^$"siteSubTitle
+    pageTitle=$"pageTitle^' | '^$"siteTitle^' '^$"siteSubTitle
 
 select_handler
 
@@ -242,8 +242,8 @@
 
 if(~ $response_format html) {
     # Is awk_buffer really useful?
-	template $headers $master_template | awk_buffer
-	echo '</body></html>'
+    template $headers $master_template | awk_buffer
+    echo '</body></html>'
 }
 if not if(~ $response_format raw)
-	template < $master_template 
+    template < $master_template