changeset 27797:5dcdd5bd46e2

maint: remove trailing spaces from code. * strfns.cc, oct-parse.yy, runtests.m, sizemax.m, namedargs2cell.m, intersect.m, setdiff.m, movprod.m, movstd.m, movvar.m, web.m: remove trailing spaces from code.
author Rik <rik@octave.org>
date Tue, 10 Dec 2019 13:47:48 -0800
parents e7dd7d98a058
children 8c1cb06468db
files libinterp/corefcn/strfns.cc libinterp/parse-tree/oct-parse.yy scripts/deprecated/runtests.m scripts/deprecated/sizemax.m scripts/miscellaneous/namedargs2cell.m scripts/set/intersect.m scripts/set/setdiff.m scripts/statistics/movprod.m scripts/statistics/movstd.m scripts/statistics/movvar.m scripts/web/web.m
diffstat 11 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/strfns.cc	Tue Dec 10 13:43:36 2019 -0800
+++ b/libinterp/corefcn/strfns.cc	Tue Dec 10 13:47:48 2019 -0800
@@ -1088,9 +1088,9 @@
 {
   if (args.length () != 0)
   print_usage ();
- 
+
   static octave_value_list retval = ovl ("\n");
- 
+
   return retval;
 }
 
--- a/libinterp/parse-tree/oct-parse.yy	Tue Dec 10 13:43:36 2019 -0800
+++ b/libinterp/parse-tree/oct-parse.yy	Tue Dec 10 13:47:48 2019 -0800
@@ -5359,7 +5359,7 @@
   if (nargin < 1 || nargin > 2)
     print_usage ();
 
-  if (! args(0).is_string () || args(0).rows () > 1 || args(0).ndims () != 2) 
+  if (! args(0).is_string () || args(0).rows () > 1 || args(0).ndims () != 2)
     error ("eval: TRY must be a string");
 
   std::string try_code = args(0).string_value ();
@@ -5369,7 +5369,7 @@
   else
     {
       if (! args(1).is_string () || args(1).rows () > 1
-          || args(1).ndims () != 2) 
+          || args(1).ndims () != 2)
         error ("eval: CATCH must be a string");
 
       std::string catch_code = args(1).string_value ();
--- a/scripts/deprecated/runtests.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/deprecated/runtests.m	Tue Dec 10 13:47:48 2019 -0800
@@ -45,5 +45,5 @@
              "runtests is obsolete and will be removed from a future version of Octave, please use oruntests instead\n");
   endif
 
-  oruntests (varargin{:}); 
+  oruntests (varargin{:});
 endfunction
--- a/scripts/deprecated/sizemax.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/deprecated/sizemax.m	Tue Dec 10 13:47:48 2019 -0800
@@ -22,7 +22,7 @@
 ## @code{sizemax} is deprecated and will be removed in Octave version 8.
 ##
 ## Return the largest value allowed for the size of an array.
-## 
+##
 ## If Octave is compiled with 64-bit indexing, the result is of class int64,
 ## otherwise it is of class int32.  The maximum array size is slightly smaller
 ## than the maximum value allowable for the relevant class as reported by
--- a/scripts/miscellaneous/namedargs2cell.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/miscellaneous/namedargs2cell.m	Tue Dec 10 13:47:48 2019 -0800
@@ -38,14 +38,14 @@
 ## @end deftypefn
 
 function c = namedargs2cell (s)
-  
+
   if (nargin != 1 || nargout > 1)
     print_usage ();
   endif
   if (! isstruct (s) || ! isscalar (s))
     error ("namedargs2cell: S must be a scalar structure");
   endif
-  
+
   c = reshape ([fieldnames(s), struct2cell(s)].', 1, []);
 
 endfunction
--- a/scripts/set/intersect.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/set/intersect.m	Tue Dec 10 13:47:48 2019 -0800
@@ -235,7 +235,7 @@
 
 ## Test "legacy" argument
 %!test
-%! a = [7 1 7 7 4]; 
+%! a = [7 1 7 7 4];
 %! b = [7 0 4 4 0];
 %! [c, ia, ib] = intersect (a, b);
 %! assert (c, [4, 7]);
--- a/scripts/set/setdiff.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/set/setdiff.m	Tue Dec 10 13:47:48 2019 -0800
@@ -192,7 +192,7 @@
 %! assert (c, [1, 4 ,5; 7, 9 7]);
 %! assert (ia, [5; 3]);
 
-## Output orientation with "legacy" option 
+## Output orientation with "legacy" option
 %!assert (size (setdiff ([1:5], [2:3], "legacy")), [1, 3])
 %!assert (size (setdiff ([1:5]', [2:3], "legacy")), [1, 3])
 %!assert (size (setdiff ([1:5], [2:3]', "legacy")), [1, 3])
--- a/scripts/statistics/movprod.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/statistics/movprod.m	Tue Dec 10 13:47:48 2019 -0800
@@ -49,7 +49,7 @@
 ##
 ## The optional string argument @qcode{"@var{nancond}"} controls whether
 ## @code{NaN} and @code{NA} values should be included (@qcode{"includenan"}),
-## or excluded (@qcode{"omitnan"}), from the data passed to @code{movprod}. 
+## or excluded (@qcode{"omitnan"}), from the data passed to @code{movprod}.
 ## The default is @qcode{"includenan"}.  Caution: the @qcode{"omitnan"}
 ## option is not yet implemented.
 ##
--- a/scripts/statistics/movstd.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/statistics/movstd.m	Tue Dec 10 13:47:48 2019 -0800
@@ -169,7 +169,7 @@
 %! y0 = movstd (x, 4, 0);
 %! assert (y, y0);
 %! y1 = movstd (x, 4, 1);
-%! assert (y1(1:3), sqrt ([1/4, 2/3, 5/4])); 
+%! assert (y1(1:3), sqrt ([1/4, 2/3, 5/4]));
 
 ## Test input validation
 %!error movstd ()
--- a/scripts/statistics/movvar.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/statistics/movvar.m	Tue Dec 10 13:47:48 2019 -0800
@@ -168,7 +168,7 @@
 %! y0 = movvar (x, 4, 0);
 %! assert (y, y0);
 %! y1 = movvar (x, 4, 1);
-%! assert (y1(1:3), [1/4, 2/3, 5/4]); 
+%! assert (y1(1:3), [1/4, 2/3, 5/4]);
 
 ## Test input validation
 %!error movvar ()
--- a/scripts/web/web.m	Tue Dec 10 13:43:36 2019 -0800
+++ b/scripts/web/web.m	Tue Dec 10 13:47:48 2019 -0800
@@ -102,7 +102,7 @@
   if (any (strcmp (varargin, "-browser")))
     url = [];
   endif
-  
+
   if (nargout > 0)
     status = sts;
   endif