From 1369e6ac4ff3f030667e009e8df0b20e9d25766e Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Sat, 29 Jan 2005 18:42:30 +0000 Subject: [PATCH] flatten array of lines... grmbl --- trunk/ripnews/ripnews.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/ripnews/ripnews.rb b/trunk/ripnews/ripnews.rb index 700d995..86c9fc4 100755 --- a/trunk/ripnews/ripnews.rb +++ b/trunk/ripnews/ripnews.rb @@ -1,6 +1,6 @@ #!/usr/local/bin/ruby -w -# $Dwarf: ripnews.rb,v 1.86 2005/01/28 20:06:45 ward Exp $ +# $Dwarf: ripnews.rb,v 1.87 2005/01/28 20:13:54 ward Exp $ # $Source$ # @@ -200,6 +200,8 @@ def parse_config(default = {}) x } + lines.flatten! + lines.collect!{|x| x.sub!(/^\s*/, "") x.sub!(/\#.*$/, "")