From ce764ca7c4cea158723a92f59723e1c55d82cd8c Mon Sep 17 00:00:00 2001 From: Tom McDonald Date: Fri, 12 Jul 2013 12:05:49 -0400 Subject: [PATCH] Do not trim leading whitespace For pastes of code snippets, removing leading whitespace usually results in mis-aligned code. --- lib/haste.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/haste.rb b/lib/haste.rb index 9a87b8b..c7286a1 100644 --- a/lib/haste.rb +++ b/lib/haste.rb @@ -20,7 +20,7 @@ module Haste @input = STDIN.readlines.join end # clean up - @input.strip! + @input.rstrip! end # Upload the and output the URL we get back