1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Remove empty lines from HTML output in Eleventy configuration

This commit is contained in:
codecalm
2025-01-28 21:33:36 +01:00
parent c0092e5124
commit e563985c3d

View File

@@ -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
}