From dc4c7215cabdc455d8f72583d03c98b2edcdbf50 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Sun, 19 Nov 2017 12:23:28 -0800 Subject: [PATCH] don't count newline --- spec/license_wrap_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/license_wrap_spec.rb b/spec/license_wrap_spec.rb index cac82bf..7e49632 100644 --- a/spec/license_wrap_spec.rb +++ b/spec/license_wrap_spec.rb @@ -11,6 +11,7 @@ describe 'word wrapping' do max_line_length = 0 max_line = "" license_text.lines.each do |line| + line.chomp! if line.length > max_line_length max_line_length = line.length max_line = line