Minify HTML overminifying text | WordPress.org

[ad_1]

Hello, when we turn on the Minify HTML option for site optimizations, our <pre> wrapped text loses some formatting. The situation we’re noticing is that double line breaks are removed entirely. So for instance:

Oh, oh, oh, I’m on fire
Oh, oh, oh, I’m on fire

Woo-ooh-ooh
Woo-ooh-ooh

Becomes:

Oh, oh, oh, I’m on fire
Oh, oh, oh, I’m on fire
Woo-ooh-ooh
Woo-ooh-ooh

I’m guessing the html minifier should ignore anything wrapped in a pre tag, and maybe <code> too.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer