diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-24 17:45:54 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-24 17:45:54 +0000 |
commit | 4896fc165af059b72aecc5b7f592d98bb38eadcd (patch) | |
tree | 9aa68944da2eac612ef34d6200d3715fbf1ee643 /crawl-ref | |
parent | 9dac83c9f3abe9f10b3923fe8ee91554ee258f91 (diff) | |
download | crawl-ref-4896fc165af059b72aecc5b7f592d98bb38eadcd.tar.gz crawl-ref-4896fc165af059b72aecc5b7f592d98bb38eadcd.zip |
Use EOL instead of \n when writing to the character dump, or things come
unglued when EOL is different from \n (such as on DOS). Ye gods. One day we'll
have to clean up this EOL crap and particularly the intricate eol mangling in
chardump.cc which I believe was written by Satan.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@106 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/Kills.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/Kills.cc b/crawl-ref/source/Kills.cc index d49bf556ed..fd773202cd 100644 --- a/crawl-ref/source/Kills.cc +++ b/crawl-ref/source/Kills.cc @@ -196,8 +196,8 @@ void KillMaster::add_kill_info(std::string &killtext, #ifdef CLUA_BINDINGS if (clua.error.length()) { - killtext += "Lua error:\n"; - killtext += clua.error + "\n\n"; + killtext += "Lua error:" EOL; + killtext += clua.error + EOL EOL; } #endif if (separator) @@ -984,8 +984,8 @@ static int kill_lualc_rawwrite(lua_State *ls) lua_settop(ls, -2); *skill += s; - *skill += "\n"; - + *skill += EOL; + return 0; } @@ -1015,7 +1015,7 @@ static int kill_lualc_write(lua_State *ls) lua_settop(ls, -2); // Write kill description and a newline. - *skill += ke->desc + "\n"; + *skill += ke->desc + EOL; } return 0; } |