Mercurial > hg > octave-nkf
comparison scripts/deprecated/clearplot.m @ 11744:eb0a86b3deb9 release-3-0-x
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:57:36 -0400 |
parents | 72830070a17b |
children |
comparison
equal
deleted
inserted
replaced
11743:c7070f6cadc8 | 11744:eb0a86b3deb9 |
---|---|
29 | 29 |
30 persistent warned = false; | 30 persistent warned = false; |
31 if (! warned) | 31 if (! warned) |
32 warned = true; | 32 warned = true; |
33 warning ("Octave:deprecated-function", | 33 warning ("Octave:deprecated-function", |
34 ["function clearplot () is obsolete and will be removed from a future\n", | 34 "clearplot is obsolete and will be removed from a future version of Octave; please use clf instead"); |
35 "version of Octave, please use clf instead"]); | |
36 endif | 35 endif |
37 | 36 |
38 clf (); | 37 clf (); |
39 | 38 |
40 endfunction | 39 endfunction |