Minify_html removes all new lines from code blocks

I’ve just started experimenting with Zola (I have zola 0.13.0), and found out that minify_html removes all new lines from code blocks. Is this expected? E.g. with minify_html = true:

With minify_html = false the block is rendered with new lines just as expected

#[cfg(feature = "typenum")]
pub use len::Len;

/// The empty `HList`.
///
/// See [crate documentation](./index.html) for more.
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Nil;
...

(As a new user I can’t use more than 1 media but with minify_html = false everything if fine)

This doesn’t seem right

It’s a known issue and has been fixed in the next branch already

2 Likes