diff libinterp/octave-value/ov-cell.h @ 23350:0f18524973eb

Fix initial newline for disp() of cells (bug #50683). * ov-cell.h (octave_cell::print_name_tag): Overloaded function prototype. * ov-cell.cc (octave_cell::print_name_tag): Overload function to display name of variable before printing.. * ov-cell.cc (short_disp, save_ascii, save_binary): Correct comments.
author Rik <rik@octave.org>
date Wed, 05 Apr 2017 14:00:21 -0700
parents 092078913d54
children cd4e1ee28716
line wrap: on
line diff
--- a/libinterp/octave-value/ov-cell.h	Wed Apr 05 11:58:21 2017 -0700
+++ b/libinterp/octave-value/ov-cell.h	Wed Apr 05 14:00:21 2017 -0700
@@ -152,6 +152,8 @@
 
   void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;
 
+  bool print_name_tag (std::ostream& os, const std::string& name) const;
+
   void short_disp (std::ostream& os) const;
 
   bool save_ascii (std::ostream& os);