changeset 33169:6f74463268b8 stable

maint: strip trailing whitespace from source files
author John W. Eaton <jwe@octave.org>
date Thu, 07 Mar 2024 14:09:48 -0500
parents b4f8f14dc1fb
children 82ae00b40c2c 0e2fbef78702
files libgui/src/files-dock-widget.cc libinterp/corefcn/ft-text-renderer.cc libinterp/corefcn/load-save.cc libinterp/corefcn/regexp.cc scripts/gui/uicontrol.m scripts/plot/draw/rose.m
diffstat 6 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/files-dock-widget.cc	Thu Mar 07 18:08:40 2024 +0100
+++ b/libgui/src/files-dock-widget.cc	Thu Mar 07 14:09:48 2024 -0500
@@ -200,7 +200,7 @@
     else
       return m_null_icon;
   }
-  
+
   QIcon icon (const QFileInfo &fi) const
   {
     static bool no_platform_theme = QIcon::themeName ().isEmpty ();
--- a/libinterp/corefcn/ft-text-renderer.cc	Thu Mar 07 18:08:40 2024 +0100
+++ b/libinterp/corefcn/ft-text-renderer.cc	Thu Mar 07 14:09:48 2024 -0500
@@ -260,7 +260,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 18:08:40 2024 +0100
+++ b/libinterp/corefcn/load-save.cc	Thu Mar 07 14:09:48 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 18:08:40 2024 +0100
+++ b/libinterp/corefcn/regexp.cc	Thu Mar 07 14:09:48 2024 -0500
@@ -881,9 +881,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 18:08:40 2024 +0100
+++ b/scripts/gui/uicontrol.m	Thu Mar 07 14:09:48 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 18:08:40 2024 +0100
+++ b/scripts/plot/draw/rose.m	Thu Mar 07 14:09:48 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]);