Skip to content

Commit

Permalink
#23 remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Dec 4, 2014
1 parent ef80517 commit de8381b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdd/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def puzzle(lines, match, idx)
rescue Error => ex
raise Error, "#{ex.message} in line ##{idx}"
end
body = (match[3] + ' ' + tail.join(' ')).gsub(/\s+/, ' ').strip
body = (match[3] + ' ' + tail.join(' ')).gsub(/[\s\n\t]+/, ' ').strip
Puzzle.new(
marker(match[2]).merge(
lines: "#{idx + 1}-#{idx + tail.size + 1}",
Expand Down

0 comments on commit de8381b

Please sign in to comment.