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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user