Mercurial > hg > octave-nkf
diff src/oct-hist.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | 7d6d8c1e471f |
children | f96b9b9f141b |
line wrap: on
line diff
--- a/src/oct-hist.cc +++ b/src/oct-hist.cc @@ -153,7 +153,7 @@ // // Arg of -w FILENAME means write file, arg of -r FILENAME // means read file, arg of -q means don't number lines. Arg of N -// means only display that many items. +// means only display that many items. static void do_history (int argc, const string_vector& argv) @@ -328,7 +328,7 @@ std::string tmp = line; int len = tmp.length (); - + if (len > 0 && tmp[len-1] == '\n') tmp.resize (len - 1); @@ -339,7 +339,7 @@ static std::string mk_tmp_hist_file (int argc, const string_vector& argv, - int insert_curr, const char *warn_for) + int insert_curr, const char *warn_for) { std::string retval;