Merge pull request #203 from phoet/strip_carriage_return

handle carriage return in strip_newline, closes #126
This commit is contained in:
Florian Weingarten
2013-06-13 12:54:17 -07:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ module Liquid
# Remove all newlines from the string
def strip_newlines(input)
input.to_s.gsub(/\n/, '')
input.to_s.gsub(/\r?\n/, '')
end