diff --git a/gulpfile.ts b/gulpfile.ts index 5a6bfc6cfe..d05864a2e4 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -64,7 +64,10 @@ gulp.task('build:ts', () => ); gulp.task('build:about:docs', () => { - const licenseHtml = fs.readFileSync('./LICENSE', 'utf-8').replace(/\r\n|\n/g, '
'); + const licenseHtml = fs.readFileSync('./LICENSE', 'utf-8') + .replace(/\r\n/g, '\n') + .replace(/.\n./g, '') + .replace(/(^|\n)(.*?)($|\n)/g, '

$2

'); const pugs = glob.sync('./src/web/about/pages/**/*.pug'); const streams = pugs.map(file => { const page = file.replace('./src/web/about/pages/', '').replace('.pug', '');