mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Using correct newline
This commit is contained in:
parent
2d2741477b
commit
dfec7a4789
|
@ -1048,7 +1048,7 @@ function createI18nFile(originalFilePath, messages) {
|
|||
}
|
||||
var content = JSON.stringify(result, null, '\t');
|
||||
if (process.platform === 'win32') {
|
||||
content = content.replace(/\n/g, '/r/n');
|
||||
content = content.replace(/\n/g, '\r\n');
|
||||
}
|
||||
return new File({
|
||||
path: path.join(originalFilePath + '.i18n.json'),
|
||||
|
|
|
@ -1173,7 +1173,7 @@ function createI18nFile(originalFilePath: string, messages: any): File {
|
|||
|
||||
let content = JSON.stringify(result, null, '\t');
|
||||
if (process.platform === 'win32') {
|
||||
content = content.replace(/\n/g, '/r/n');
|
||||
content = content.replace(/\n/g, '\r\n');
|
||||
}
|
||||
return new File({
|
||||
path: path.join(originalFilePath + '.i18n.json'),
|
||||
|
|
Loading…
Reference in a new issue