mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Generated docs should use Unix line endings on Windows
This commit is contained in:
@@ -20,12 +20,12 @@ import { default as tsPlugin } from './src/rules/ts';
|
||||
|
||||
const templates = new Map();
|
||||
|
||||
function lazyEJS(path: string, data: object) {
|
||||
function lazyEJS(path: string, data: object): string {
|
||||
if (!templates.has(path)) {
|
||||
templates.set(path, require('ejs').compile(readFileSync(path).toString()));
|
||||
}
|
||||
|
||||
return templates.get(path)(data);
|
||||
return templates.get(path)(data).replace(/\r\n/g, '\n');
|
||||
}
|
||||
|
||||
const docsDir = join('docs', 'lint');
|
||||
|
Reference in New Issue
Block a user