From e563985c3d8855499b7708e6428d1c20b0be21c9 Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 28 Jan 2025 21:33:36 +0100 Subject: [PATCH] Remove empty lines from HTML output in Eleventy configuration --- eleventy.config.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eleventy.config.mjs b/eleventy.config.mjs index d1b5fe24e..e16d104bf 100644 --- a/eleventy.config.mjs +++ b/eleventy.config.mjs @@ -537,6 +537,8 @@ export default function (eleventyConfig) { return outputPath.endsWith('.html') ? content .replace(/\/\/ @formatter:(on|off)\n+/gm, '') + // remove empty lines + .replace(/^\s*[\r\n]/gm, '') : content }