Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
system-depenedent-eol (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zim Kalinowski authored Jun 4, 2020
1 parent 97e765e commit 2457087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/azgenerator/azgenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Session, startSession, Host, Channel } from '@azure-tools/autorest-exte
import { serialize, deserialize } from '@azure-tools/codegen';
import { GenerateAll } from "./Generator";
import { CodeModelCliImpl } from "./CodeModelAzImpl";
import { EOL } from "os";


export async function processRequest(host: Host) {
Expand All @@ -20,7 +21,7 @@ export async function processRequest(host: Host) {
} while (model.SelectNextExtension());
}
for (let f in files) {
host.WriteFile(f, files[f].join('\r\n'));
host.WriteFile(f, files[f].join(EOL));
}
} catch (E) {
if (debug) {
Expand Down

0 comments on commit 2457087

Please sign in to comment.