diff --git a/lib/pdd/source.rb b/lib/pdd/source.rb index eacca87..b15574f 100644 --- a/lib/pdd/source.rb +++ b/lib/pdd/source.rb @@ -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}",