more consistent tabbing

This commit is contained in:
Ward Wouts 2003-04-28 09:07:17 +00:00
parent 30c79ac405
commit 00fb830be6

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w #!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.52 2003/04/24 12:14:36 ward Exp $ # $Dwarf: ripnews.rb,v 1.53 2003/04/27 22:28:59 ward Exp $
# $Source$ # $Source$
require 'date' require 'date'
@ -352,14 +352,14 @@ def check_ext(group, filename, mode, subject)
case mode case mode
when "s" when "s"
if @config[group].has_key?("-SD") && ( filename =~ /\.(#{@config[group]["-SD"]})$/ ) if @config[group].has_key?("-SD") && ( filename =~ /\.(#{@config[group]["-SD"]})$/ )
print "Marking '#{subject}' matches as read\n" print " Marking '#{subject}' matches as read\n"
@articles.group_update_newsrc(subject) @articles.group_update_newsrc(subject)
return false return false
end end
return @config[group].has_key?("-S") ? ( filename =~ /\.(#{@config[group]["-S"]})$/ ) : true return @config[group].has_key?("-S") ? ( filename =~ /\.(#{@config[group]["-S"]})$/ ) : true
when "m" when "m"
if @config[group].has_key?("-MD") && ( filename =~ /\.(#{@config[group]["-MD"]})$/ ) if @config[group].has_key?("-MD") && ( filename =~ /\.(#{@config[group]["-MD"]})$/ )
print "Marking '#{subject}' matches as read\n" print " Marking '#{subject}' matches as read\n"
@articles.group_update_newsrc(subject) @articles.group_update_newsrc(subject)
return false return false
end end