From 77d84aafc9d1f3df4b3988e48cbf2ce06d315d7b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 29 Jun 2010 03:25:41 +0200 Subject: Removing useless whitespaces from upstream files at EOL. --- lib/sisu/v2/param.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/sisu/v2/param.rb') diff --git a/lib/sisu/v2/param.rb b/lib/sisu/v2/param.rb index 98478626..8b75edfc 100644 --- a/lib/sisu/v2/param.rb +++ b/lib/sisu/v2/param.rb @@ -152,7 +152,7 @@ module SiSU_Param @s,@opt,@env=str,opt,env end def validate_length(s,l,n) - #s=(s.length <= l) ? s : nil + #s=(s.length <= l) ? s : nil s=if s.class==String \ and s.length <= l s @@ -160,9 +160,9 @@ module SiSU_Param elsif s.class !=String puts "#{n} is #{s.class}: programming error, String expected #{__FILE__}:#{__LINE__}" s - else + else SiSU_Screen::Ansi.new('v',"#{n} length #{s.length} exceeds set db field length #{l}, metadata dropped",@opt.fns).warn unless @opt.cmd =~/q/ - nil + nil end end def name_format(name) @@ -278,7 +278,7 @@ module SiSU_Param l,n=Db[:col_name],'creator.author' validate_length(s,l,n) end - def author_detail + def author_detail s=(@h['author'] ? @h['author'] : @h['main']) names=name_format(s) names[:name_a_h] @@ -1174,7 +1174,7 @@ module SiSU_Param dgst=@sys.sha256(@env.source_file_with_path) @dgst=dgst[1].length==64 ? dgst : nil puts 'check document (sha256) digest' if not @dgst - @dgst_skin=skin ? (@sys.sha256(skin)) : nil + @dgst_skin=skin ? (@sys.sha256(skin)) : nil else dgst=@sys.md5(@env.source_file_with_path) @dgst=dgst[1].length==32 ? dgst : nil -- cgit v1.2.3