diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-03-11 12:31:16 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-03-11 13:15:30 +0100 |
commit | a35bce8c2918368353ac9a736d43925a73e284df (patch) | |
tree | f976422b2f8075478b5d67a4fd092b6c4a5a74d5 /crawl-ref/source/clua.cc | |
parent | 17940946e038d52e496d3f410307e1a1a8681367 (diff) | |
download | crawl-ref-a35bce8c2918368353ac9a736d43925a73e284df.tar.gz crawl-ref-a35bce8c2918368353ac9a736d43925a73e284df.zip |
Remove EOL.
We were only setting it to "\r\n" on DOS, but according to commens
in #1045, DOS will translate "\n" to "\r\n" automatically for
text output.
Also, the DOS EOL handling was likely broken anyway looking at how
a lot of the linebreaking code only considered "\n".
Fixes issue #1045.
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index ad5e51c7a3..6ace4334b1 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -728,7 +728,7 @@ void CLua::print_stack() int i = 0; lua_State *L = state(); - fprintf(stderr, EOL); + fprintf(stderr, "\n"); while (lua_getstack(L, i++, &dbg) == 1) { lua_getinfo(L, "lnuS", &dbg); @@ -739,11 +739,11 @@ void CLua::print_stack() else file++; - fprintf(stderr, "%s, function %s, line %d" EOL, file, + fprintf(stderr, "%s, function %s, line %d\n", file, dbg.name, dbg.currentline); } - fprintf(stderr, EOL); + fprintf(stderr, "\n"); } //////////////////////////////////////////////////////////////////////// |