module Nanoc3::Filters class RemoveSpacingRoundPre < Nanoc3::Filter identifiers :remove_spacing_around_pre def run(content, arguments={}) content.gsub(/
\n/) { |m| m[0..-2] } end end end