$comment =~ s/(?:\s*[\n\r]\s*){2,}/\n

\n/g; $content =~ s/(?!

)[\n\r](?!

)/
\n/g;