File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,8 @@ procedure TGenerator.Generate;
195195 BuildStationNames;
196196
197197 // initialize line ending if not corrected
198- if FLineEnding <> #10 then
199- FLineEnding := #13 # 10 ;
198+ if FLineEnding <> #13 # 10 then
199+ FLineEnding := #10 ;
200200
201201 outputFileStream := TFileStream.Create(FOutPutFile, fmCreate);
202202
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ procedure WriteHelp;
7272 WriteLn(' -o|--output-file <filename> The file that will contain the generated lines' );
7373 WriteLn(' -n|--line-count <number> The amount of lines to be generated ( Can use 1_000_000_000 )' );
7474 WriteLn(' -4|--400stations Only 400 weather stations in output file' );
75- WriteLn(' -b|--line-ending Line ending: CRLF (default) or LF ' );
75+ WriteLn(' -b|--line-ending Line ending: LF (default) or CRLF ' );
7676end ;
7777
7878end .
Original file line number Diff line number Diff line change @@ -257,8 +257,8 @@ begin
257257 end
258258 else
259259 begin
260- if UpperCase(tmpLineEnd) = ' LF ' then
261- lineEnding := #10 ;
260+ if UpperCase(tmpLineEnd) = ' CRLF ' then
261+ lineEnding := #13 # 10 ;
262262 inc(valid);
263263 end ;
264264 end ;
Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ procedure TOneBRCGenerator.DoRun;
148148 Terminate;
149149 Exit;
150150 end
151- else if UpperCase(tmpLineEnd) = ' LF ' then
152- lineEnding := #10 ;
151+ else if UpperCase(tmpLineEnd) = ' CRLF ' then
152+ lineEnding := #13 # 10 ;
153153 end ;
154154
155155 inputFilename:= ExpandFileName(inputFilename);
You can’t perform that action at this time.
0 commit comments