Mercurial > hg > octave-lyh
comparison src/ov-base.cc @ 4604:cba347c642e2
[project @ 2003-11-13 04:38:05 by jwe]
author | jwe |
---|---|
date | Thu, 13 Nov 2003 04:38:05 +0000 |
parents | 77566be8b9e9 |
children | d44675070f1a |
comparison
equal
deleted
inserted
replaced
4603:15ddd40fee90 | 4604:cba347c642e2 |
---|---|
216 } | 216 } |
217 | 217 |
218 bool | 218 bool |
219 octave_base_value::print_name_tag (std::ostream& os, const std::string& name) const | 219 octave_base_value::print_name_tag (std::ostream& os, const std::string& name) const |
220 { | 220 { |
221 bool retval = false; | |
222 | |
221 indent (os); | 223 indent (os); |
222 os << name << " ="; | 224 |
223 newline (os); | 225 if (print_as_scalar ()) |
224 newline (os); | 226 os << name << " = "; |
225 return true; | 227 else |
228 { | |
229 os << name << " ="; | |
230 newline (os); | |
231 newline (os); | |
232 retval = true; | |
233 } | |
234 | |
235 return retval; | |
226 } | 236 } |
227 | 237 |
228 void | 238 void |
229 octave_base_value::print_info (std::ostream& os, | 239 octave_base_value::print_info (std::ostream& os, |
230 const std::string& prefix) const | 240 const std::string& prefix) const |