diff options
author | Daniel Baumann <daniel@debian.org> | 2010-06-29 03:25:41 +0200 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-07-02 13:56:08 -0400 |
commit | 77d84aafc9d1f3df4b3988e48cbf2ce06d315d7b (patch) | |
tree | 78edb5d90ef5f7b9ce44f97f33fd4f8734f5d31a /lib/sisu/v2/param.rb | |
parent | provide alternatives for producing single output types (diff) |
Removing useless whitespaces from upstream files at EOL.
Diffstat (limited to 'lib/sisu/v2/param.rb')
-rw-r--r-- | lib/sisu/v2/param.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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 |