File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ async function fixTitleOf(file) {
90
90
91
91
if ( updated ) {
92
92
console . log ( `Updating title in ${ file } ` ) ;
93
- const content = Buffer . from ( buffer . join ( '\r\ n' ) ) ;
93
+ const content = Buffer . from ( buffer . join ( '\n' ) ) ;
94
94
await fs . writeFile ( file , content ) ;
95
95
}
96
96
}
@@ -110,7 +110,7 @@ async function fixTocTitles(file) {
110
110
}
111
111
112
112
console . log ( `Updating titles in ${ file } ` ) ;
113
- const content = Buffer . from ( buffer . join ( '\r\ n' ) ) ;
113
+ const content = Buffer . from ( buffer . join ( '\n' ) ) ;
114
114
await fs . writeFile ( file , content ) ;
115
115
}
116
116
@@ -166,7 +166,7 @@ async function writeExtraContentTo(target, extra) {
166
166
output . push ( line ) ;
167
167
}
168
168
169
- const outputBuffer = Buffer . from ( output . join ( '\r\ n' ) ) ;
169
+ const outputBuffer = Buffer . from ( output . join ( '\n' ) ) ;
170
170
console . log ( `Writing extra content to ${ target } ` ) ;
171
171
await fs . writeFile ( target , outputBuffer ) ;
172
172
}
You can’t perform that action at this time.
0 commit comments