Mercurial > hg > octave-nkf
diff libinterp/corefcn/oct-stream.cc @ 19315:c8f03ccdc9ee
Align columns for freport() output.
* file-io.cc (Ffreport): Update example in docstring to include arch column and
new alignment.
* oct-stream.cc (octave_stream_list::do_list_open_files): Use resetiosflags()
to guarantee that setiosflags() function calls are respected.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 20 Sep 2014 22:04:01 -0700 |
parents | 5bd1ca29c5f0 |
children | 65554f5847ac |
line wrap: on
line diff
--- a/libinterp/corefcn/oct-stream.cc +++ b/libinterp/corefcn/oct-stream.cc @@ -4368,6 +4368,8 @@ buf << " " << std::setiosflags (std::ios::right) << std::setw (4) << p->first << " " + // reset necessary in addition to setiosflags since this is one stmt. + << std::resetiosflags (std::ios::adjustfield) << std::setiosflags (std::ios::left) << std::setw (3) << octave_stream::mode_as_string (os.mode ())