Skip to content

Commit

Permalink
Fix a couple syntax errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-dub committed Dec 23, 2008
1 parent 0c14e75 commit 1bc1482
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions csshttprequest.rb
Expand Up @@ -12,7 +12,12 @@ def encode(str)
slice_num = 0
output = ""
quoted.each_slice(LENGTH) do |chunk|
out += "#c%d{background:url(%s%s);}\n" % (slice_num, PREFIX, chunk)
output += "#c%d{background:url(%s%s);}\n" % [slice_num, PREFIX, chunk]
slice_num += 1
end
out
output
end

if __FILE__ == $PROGRAM_NAME
puts encode(STDIN.read)
end

0 comments on commit 1bc1482

Please sign in to comment.