changeset 33170:82ae00b40c2c

maint: strip trailing whitespace from source files
author John W. Eaton <jwe@octave.org>
date Thu, 07 Mar 2024 14:16:22 -0500
parents e20624df2cd2 (current diff) 6f74463268b8 (diff)
children 88a08496297a 0939d40ef9cd
files doc/interpreter/expr.txi doc/interpreter/external.txi doc/interpreter/numbers.txi doc/interpreter/octave.1 etc/NEWS.10.md etc/ROADMAP.md libgui/src/files-dock-widget.cc libinterp/corefcn/fft2.cc libinterp/corefcn/ft-text-renderer.cc libinterp/corefcn/regexp.cc test/bug-65220/bug-65220.tst test/bug-65220/cdefdir/cdef_help1.m test/bug-65220/cdefdir/cdef_help2.m
diffstat 16 files changed, 36 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/expr.txi	Thu Mar 07 14:01:24 2024 -0500
+++ b/doc/interpreter/expr.txi	Thu Mar 07 14:16:22 2024 -0500
@@ -52,7 +52,7 @@
 An @dfn{index expression} allows you to reference or extract selected
 elements of a vector, a matrix (2-D), or a higher-dimensional array.  Arrays
 may be indexed in one of three ways:
-@ref{XREFComponentIndexing,,Component Indexing}, 
+@ref{XREFComponentIndexing,,Component Indexing},
 @ref{XREFLinearIndexing,,Linear Indexing}, and
 @ref{XREFLogicalIndexing,,Logical Indexing}.
 
@@ -309,7 +309,7 @@
 @cindex Chained indexing
 Octave permits the use of repeated (chained) index expressions to extract
 subsets of an array in a single command without the need to use intermediate
-variables.  This can make it easier to write code with either complicated 
+variables.  This can make it easier to write code with either complicated
 indexing operations or using multiple indexing methods. The following example
 shows two equivalent index extraction operations:
 
--- a/doc/interpreter/external.txi	Thu Mar 07 14:01:24 2024 -0500
+++ b/doc/interpreter/external.txi	Thu Mar 07 14:16:22 2024 -0500
@@ -1010,7 +1010,7 @@
 macros to allow writing code that can be used with different Fortran calling
 conventions.
 
-Note that we don't attempt to handle Fortran functions, we always use 
+Note that we don't attempt to handle Fortran functions, we always use
 subroutine wrappers for them and pass the return value as an extra argument.
 
 Use the following macros to pass character strings from C to Fortran:
--- a/doc/interpreter/numbers.txi	Thu Mar 07 14:01:24 2024 -0500
+++ b/doc/interpreter/numbers.txi	Thu Mar 07 14:16:22 2024 -0500
@@ -752,7 +752,7 @@
 
 Logical values can also be used to index matrices and cell arrays.
 When indexing with a logical array the result will be a vector containing
-the values corresponding to @code{true} parts of the logical array. 
+the values corresponding to @code{true} parts of the logical array.
 @xref{XREFLogicalIndexing, , Logical Indexing}.
 
 Logical values can also be constructed by
--- a/doc/interpreter/octave.1	Thu Mar 07 14:01:24 2024 -0500
+++ b/doc/interpreter/octave.1	Thu Mar 07 14:16:22 2024 -0500
@@ -70,7 +70,7 @@
 .UR https://\:docs.octave.org/\:latest
 .UE .
 .SH BUGS
-The Octave project maintains a bug tracker at 
+The Octave project maintains a bug tracker at
 .UR https://\:bugs.octave.org
 .UE .
 Before submitting a new item please read the instructions at
--- a/etc/NEWS.10.md	Thu Mar 07 14:01:24 2024 -0500
+++ b/etc/NEWS.10.md	Thu Mar 07 14:16:22 2024 -0500
@@ -15,7 +15,7 @@
   * `--no-init-site` : Don't read site-wide configuration files at startup.
   * `--no-init-all` : Don't read any configuration files at startup.
 
-- `nchoosek` algorithm is now ~2x faster and provides greater precision. 
+- `nchoosek` algorithm is now ~2x faster and provides greater precision.
 
 ### Graphical User Interface
 
--- a/etc/ROADMAP.md	Thu Mar 07 14:01:24 2024 -0500
+++ b/etc/ROADMAP.md	Thu Mar 07 14:16:22 2024 -0500
@@ -48,7 +48,7 @@
 
 - String class "foo" as distinct from array of characters 'foo'. (LEAD?)
   - See https://octave.discourse.group/t/implementation-of-a-string-class/1089
-  - Depends on HDF5. 
+  - Depends on HDF5.
   - Note: Examine Nelson's implementation.
   - Target: Octave 10.
 
--- a/libgui/src/files-dock-widget.cc	Thu Mar 07 14:01:24 2024 -0500
+++ b/libgui/src/files-dock-widget.cc	Thu Mar 07 14:16:22 2024 -0500
@@ -198,7 +198,7 @@
     else
       return m_null_icon;
   }
-  
+
   QIcon icon (const QFileInfo &fi) const
   {
     static bool no_platform_theme = QIcon::themeName ().isEmpty ();
--- a/libinterp/corefcn/fft2.cc	Thu Mar 07 14:01:24 2024 -0500
+++ b/libinterp/corefcn/fft2.cc	Thu Mar 07 14:16:22 2024 -0500
@@ -165,10 +165,10 @@
 %! sz = size (fft2 (ones (5, 4, 3), 2, 0));
 %! assert (sz, [2, 0, 3]);
 
-%!error <number of rows \(M\) cannot be NaN> fft2 (ones (5,4,3), NaN, 2) 
-%!error <number of rows \(M\) .* greater than zero> fft2 (ones (5,4,3), -1, 2) 
-%!error <number of columns \(N\) cannot be NaN> fft2 (ones (5,4,3), 2, NaN) 
-%!error <number of columns \(N\) .* greater than zero> fft2 (ones (5,4,3), 2, -1) 
+%!error <number of rows \(M\) cannot be NaN> fft2 (ones (5,4,3), NaN, 2)
+%!error <number of rows \(M\) .* greater than zero> fft2 (ones (5,4,3), -1, 2)
+%!error <number of columns \(N\) cannot be NaN> fft2 (ones (5,4,3), 2, NaN)
+%!error <number of columns \(N\) .* greater than zero> fft2 (ones (5,4,3), 2, -1)
 */
 
 DEFUN (ifft2, args, ,
@@ -281,10 +281,10 @@
 %!
 %! assert (s, answer, 30* eps ("single"));
 
-%!error <number of rows \(M\) cannot be NaN> ifft2 (ones (5,4,3), NaN, 2) 
-%!error <number of rows \(M\) .* greater than zero> ifft2 (ones (5,4,3), -1, 2) 
-%!error <number of columns \(N\) cannot be NaN> ifft2 (ones (5,4,3), 2, NaN) 
-%!error <number of columns \(N\) .* greater than zero> ifft2 (ones (5,4,3), 2, -1) 
+%!error <number of rows \(M\) cannot be NaN> ifft2 (ones (5,4,3), NaN, 2)
+%!error <number of rows \(M\) .* greater than zero> ifft2 (ones (5,4,3), -1, 2)
+%!error <number of columns \(N\) cannot be NaN> ifft2 (ones (5,4,3), 2, NaN)
+%!error <number of columns \(N\) .* greater than zero> ifft2 (ones (5,4,3), 2, -1)
 */
 
 OCTAVE_END_NAMESPACE(octave)
--- a/libinterp/corefcn/ft-text-renderer.cc	Thu Mar 07 14:01:24 2024 -0500
+++ b/libinterp/corefcn/ft-text-renderer.cc	Thu Mar 07 14:16:22 2024 -0500
@@ -259,7 +259,7 @@
             font_map.assign ("weight", weights);
             font_map.assign ("suitable", suitable);
 
-            // Free up memory within libfontconfig 
+            // Free up memory within libfontconfig.
             if (fs)
               FcFontSetDestroy (fs);
             if (pat)  // Supposed to be freed by FcFontSetDestroy above, but isn't.
--- a/libinterp/corefcn/load-save.cc	Thu Mar 07 14:01:24 2024 -0500
+++ b/libinterp/corefcn/load-save.cc	Thu Mar 07 14:16:22 2024 -0500
@@ -1664,7 +1664,7 @@
 Force Octave to assume the file is in @sc{matlab}'s v7.3 binary data format.
 As the v7.3 format is an HDF5 based format, those files often can also be
 opened with the @qcode{"-hdf5"} option.  Note that Octave @strong{can not}
-currently save in this format.  
+currently save in this format.
 
 @item  -v7
 @itemx -V7
--- a/libinterp/corefcn/regexp.cc	Thu Mar 07 14:01:24 2024 -0500
+++ b/libinterp/corefcn/regexp.cc	Thu Mar 07 14:16:22 2024 -0500
@@ -880,9 +880,9 @@
 complement), and then further processing the return variables (now reduced in
 size) with successive @code{regexp} searches.
 
-Octave's @code{regexp} implementaion is based on the Perl Compatible Regular 
-Expressions library (@url{https://www.pcre.org/}).  For a more comprehensive list
-of rexexp operator syntax see the 
+Octave's @code{regexp} implementaion is based on the Perl Compatible
+Regular Expressions library (@url{https://www.pcre.org/}).  For a more
+comprehensive list of rexexp operator syntax see the
 @url{https://www.pcre.org/current/doc/html/pcre2syntax.html,,
 "PCRE Syntax quick-reference summary"}.
 
--- a/scripts/gui/uicontrol.m	Thu Mar 07 14:01:24 2024 -0500
+++ b/scripts/gui/uicontrol.m	Thu Mar 07 14:16:22 2024 -0500
@@ -87,9 +87,9 @@
 ##
 ## @end table
 ##
-## Note:  For the @qcode{"edit"} and @qcode{"listbox"} styles, the single or 
+## Note:  For the @qcode{"edit"} and @qcode{"listbox"} styles, the single or
 ## multiple line/selection behavior is determined by the @qcode{"Min"} and
-## @qcode{"Max"} properties, permitting multiple lines/selections when the 
+## @qcode{"Max"} properties, permitting multiple lines/selections when the
 ## values are set such that @w{@code{Max - Min > 1}}.
 ##
 ## Examples:
--- a/scripts/plot/draw/rose.m	Thu Mar 07 14:01:24 2024 -0500
+++ b/scripts/plot/draw/rose.m	Thu Mar 07 14:16:22 2024 -0500
@@ -84,7 +84,7 @@
 
   custom_bins = false;
   if (nargin == 1)
-    bins = [9 : 18 : 360] / 180 * pi;  
+    bins = [9 : 18 : 360] / 180 * pi;
   else
     bins = varargin{2};
     if (isscalar (bins))
@@ -196,12 +196,12 @@
 %! assert ([t(2); t(3:4:end)], [0; pi/2; pi; 3*pi/2; 2*pi]);
 %! assert (r(2:4:end), [2; 0; 0; 0]);
 
-## Custom bins, synthesized bin1 cut-off is exactly 36 degrees 
+## Custom bins, synthesized bin1 cut-off is exactly 36 degrees
 %!test
 %! [t,r] = rose (deg2rad ([35, 36]), pi * [1/2, 1, 1.5, 1.9]);
 %! assert (r(2:4:end), [1; 0; 0; 1]);
 
-## Custom bins, synthesized bin1 cut-off is exactly -36 degrees 
+## Custom bins, synthesized bin1 cut-off is exactly -36 degrees
 %!test
 %! [t,r] = rose (deg2rad ([-36, -37, 360]), pi * [1/10, 1/2, 1, 1.5]);
 %! assert (r(2:4:end), [0; 0; 1; 2]);
--- a/test/bug-65220/bug-65220.tst	Thu Mar 07 14:01:24 2024 -0500
+++ b/test/bug-65220/bug-65220.tst	Thu Mar 07 14:16:22 2024 -0500
@@ -26,7 +26,7 @@
 %!test <*65220>
 %! unwind_protect
 %!   addpath ('cdefdir');
-%! 
+%!
 %!   ## Check methods first (bug was disguised if class checked first)
 %!   s = help ('cdef_help1.meth1');
 %!   assert (regexp (s, 'meth1: method help text ABOVE function'));
@@ -50,11 +50,11 @@
 %!   ## Check documentation for entire class
 %!   s = help ('cdef_help1');
 %!   assert (regexp (s, 'class cdef_help1 : class help text ABOVE classdef'));
-%!   
+%!
 %!   ## Check documentation for constructor
 %!   s = help ('cdef_help1.cdef_help1');
 %!   assert (regexp (s, 'cdef_help1: constructor help text BELOW function'));
-%!   
+%!
 %!   ## Check documentation for properties
 %!   s = help ('cdef_help1.prop1');
 %!   assert (regexp (s, 'prop1: property help text ABOVE property'));
@@ -69,7 +69,7 @@
 %!test <*65220>
 %! unwind_protect
 %!   addpath ('cdefdir');
-%! 
+%!
 %!   ## Check methods first (bug was disguised if class checked first)
 %!   s = help ('cdef_help2.meth1');
 %!   assert (regexp (s, 'meth1: method help text ABOVE function'));
@@ -93,11 +93,11 @@
 %!   ## Check documentation for entire class
 %!   s = help ('cdef_help2');
 %!   assert (regexp (s, 'class cdef_help2 : class help text BELOW classdef'));
-%!   
+%!
 %!   ## Check documentation for constructor
 %!   s = help ('cdef_help2.cdef_help2');
 %!   assert (regexp (s, 'cdef_help2: constructor help text ABOVE function'));
-%!   
+%!
 %!   ## Check documentation for properties
 %!   s = help ('cdef_help2.prop1');
 %!   assert (regexp (s, 'prop1: property help text ABOVE property'));
--- a/test/bug-65220/cdefdir/cdef_help1.m	Thu Mar 07 14:01:24 2024 -0500
+++ b/test/bug-65220/cdefdir/cdef_help1.m	Thu Mar 07 14:16:22 2024 -0500
@@ -57,12 +57,12 @@
     end
 
     % meth1: method help text ABOVE function
-    % 
+    %
     % Type 'help cdef_help1.meth1'.
     function obj2 = meth1 (obj, n)
       obj2 = n + obj;
     end
-    
+
     function obj2 = meth2 (obj, n)
 
       % meth2: method help text BELOW function
--- a/test/bug-65220/cdefdir/cdef_help2.m	Thu Mar 07 14:01:24 2024 -0500
+++ b/test/bug-65220/cdefdir/cdef_help2.m	Thu Mar 07 14:16:22 2024 -0500
@@ -54,12 +54,12 @@
     end
 
     # meth1: method help text ABOVE function
-    # 
+    #
     # Type 'help cdef_help2.meth1'.
     function obj2 = meth1 (obj, n)
       obj2 = n + obj;
     end
-    
+
     function obj2 = meth2 (obj, n)
 
       # meth2: method help text BELOW function