Permalink
Browse files

Fix a couple syntax errors.

  • Loading branch information...
1 parent 0c14e75 commit 1bc148296cb858e2b81854f9a6ad80ea902d70fd @cee-dub cee-dub committed Dec 23, 2008
Showing with 7 additions and 2 deletions.
  1. +7 −2 csshttprequest.rb
View
@@ -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.