Fix #16
This commit is contained in:
parent
1bfaa7ad7a
commit
51b991f50f
|
@ -0,0 +1,15 @@
|
||||||
|
@echo off
|
||||||
|
setlocal enabledelayedexpansion
|
||||||
|
|
||||||
|
set DFLAGS=-g
|
||||||
|
set CORE=
|
||||||
|
set STD=
|
||||||
|
set STDD=
|
||||||
|
|
||||||
|
for %%x in (src\*.d) do set CORE=!CORE! %%x
|
||||||
|
for %%x in (libdparse\src\std\*.d) do set STD=!STD! %%x
|
||||||
|
for %%x in (libdparse\src\std\d\*.d) do set STDD=!STDD! %%x
|
||||||
|
|
||||||
|
@echo on
|
||||||
|
dmd %CORE% %STD% %STDD% %DFLAGS% -ofbin\dfmt.exe
|
||||||
|
|
|
@ -1235,6 +1235,11 @@ private:
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// You know what's awesome? Windows can't handle its own line
|
||||||
|
// endings correctly.
|
||||||
|
version(Windows)
|
||||||
|
output.put(current.text.replace("\r", ""));
|
||||||
|
else
|
||||||
output.put(current.text);
|
output.put(current.text);
|
||||||
currentLineLength += current.text.length;
|
currentLineLength += current.text.length;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue