From: elijah Date: Mon, 9 Jan 2006 00:20:48 +0000 (+0000) Subject: fixed indenting X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=882ed8a4f7368a9f55b11db0b3951b89504fecc4;p=matthijs%2Fupstream%2Fbackupninja.git fixed indenting git-svn-id: http://code.autistici.org/svn/backupninja/trunk@308 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/lib/parseini.in b/lib/parseini.in index 6f56d42..b9dfd01 100644 --- a/lib/parseini.in +++ b/lib/parseini.in @@ -8,27 +8,26 @@ # # example ini file: # -# fruit = apple -# fruit = pear -# multiline = this is a multiline \ -# parameter +# fruit = apple +# fruit = pear +# multiline = this is a multiline \ +# parameter # -# # this is a comment +# # this is a comment +# [colors] +# red = yes +# green = no +# blue = maybe # -# [colors] -# red = yes -# green = no -# blue = maybe -# -# [ocean] -# fish = red -# fish = blue +# [ocean] +# fish = red +# fish = blue # # example usage: -# > awk -f parseini S=ocean P=fish testfile.ini +# > awk -f parseini S=ocean P=fish testfile.ini # would return: -# red -# blue +# red +# blue # BEGIN { @@ -119,7 +118,7 @@ END { for (x = 0; x < nline; ++x) { sub(/^[ \r\t]+/, "", line[x]) sub(/[ \r\t]+$/, "", line[x]) - } + } # output the final result for (x = 0; x < nline; ++x)