comparison libinterp/corefcn/oct-stream.cc @ 19157: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
comparison
equal deleted inserted replaced
19156:c43223245085 19157:c8f03ccdc9ee
4366 octave_stream os = p->second; 4366 octave_stream os = p->second;
4367 4367
4368 buf << " " 4368 buf << " "
4369 << std::setiosflags (std::ios::right) 4369 << std::setiosflags (std::ios::right)
4370 << std::setw (4) << p->first << " " 4370 << std::setw (4) << p->first << " "
4371 // reset necessary in addition to setiosflags since this is one stmt.
4372 << std::resetiosflags (std::ios::adjustfield)
4371 << std::setiosflags (std::ios::left) 4373 << std::setiosflags (std::ios::left)
4372 << std::setw (3) 4374 << std::setw (3)
4373 << octave_stream::mode_as_string (os.mode ()) 4375 << octave_stream::mode_as_string (os.mode ())
4374 << " " 4376 << " "
4375 << std::setw (9) 4377 << std::setw (9)