flatten array of lines... grmbl

This commit is contained in:
Ward Wouts 2005-01-29 18:42:30 +00:00
parent c23409e853
commit 1369e6ac4f

View file

@ -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!(/\#.*$/, "")