sup

A curses threads-with-tags style email client

ncursesw-ruby.git

git clone https://supmua.dev/git/ncursesw-ruby/
commit 5578825b7c3ab77f4f677c88738b360395e68e2a
parent cdda55e1ebac3c92472c446a2b3cb199e4da5aa8
Author: Loren Rogers <loren@lorentrogers.com>
Date:   Thu,  3 Nov 2016 21:07:59 -0400

Removes trailing whitespace from files

A few of the files had some extra trailing whitespace.
I checked through all the files, and I believe I covered everything.

Diffstat:
M examples/example.rb | 14 +++++++-------
M examples/form.rb | 16 ++++++++--------
M examples/form2.rb | 26 +++++++++++++-------------
M menu_wrap.h | 4 ++--
M panel_wrap.c | 12 ++++++------
M panel_wrap.h | 2 +-
6 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/examples/example.rb b/examples/example.rb
@@ -6,8 +6,8 @@
 # Copyright (C) 2002 Tobias Peters <t-peters@users.berlios.de>
 #
 # The following license applys only to this file. It is less restrictive
-# than the license for the rest of the ncurses-ruby distribution. 
-# I've adapted this file from someone else, see below. 
+# than the license for the rest of the ncurses-ruby distribution.
+# I've adapted this file from someone else, see below.
 #
 # Permission is hereby granted, free of charge, to any person
 # obtaining a copy of this file
@@ -16,10 +16,10 @@
 # publish, distribute, sublicense, and/or sell copies of the Software,
 # and to permit persons to whom the Software is furnished to do so,
 # subject to the following conditions:
-# 
+#
 # The above copyright notice and this permission notice shall be
 # included in all copies or substantial portions of the Software.
-# 
+#
 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -36,7 +36,7 @@
 # statement:
 
 # Copyright (c) 2000 by Harry Henry Gebel
-# 
+#
 # Permission is hereby granted, free of charge, to any person
 # obtaining a copy of this software and associated documentation files
 # (the "Software"), to deal in the Software without restriction,
@@ -44,10 +44,10 @@
 # publish, distribute, sublicense, and/or sell copies of the Software,
 # and to permit persons to whom the Software is furnished to do so,
 # subject to the following conditions:
-# 
+#
 # The above copyright notice and this permission notice shall be
 # included in all copies or substantial portions of the Software.
-# 
+#
 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
diff --git a/examples/form.rb b/examples/form.rb
@@ -5,9 +5,9 @@
 # For a more rubyish approach that uses Ruby objects see form2.rb
 #
 # The original example contained the following copyright:
-# Copyright (c) 2001 by Pradeep Padala. This document may be distributed 
+# Copyright (c) 2001 by Pradeep Padala. This document may be distributed
 # under the terms set forth in the LDP license at linuxdoc.org/COPYRIGHT.html.
- 
+
 require 'ncursesw.rb'
 
 begin
@@ -20,7 +20,7 @@ begin
   fields = Array.new
   fields.push(Ncurses::Form.new_field(1,10,4,18,0,0))
   fields.push(Ncurses::Form.new_field(1,10,6,18,0,0))
-  
+
   # set field options
   Ncurses::Form.set_field_back(fields[0], Ncurses::A_UNDERLINE)
   Ncurses::Form.field_opts_off(fields[0], Ncurses::Form::O_AUTOSKIP)
@@ -29,7 +29,7 @@ begin
   Ncurses::Form.field_opts_off(fields[1], Ncurses::Form::O_AUTOSKIP)
 
 
-  # create a form  
+  # create a form
   form = Ncurses::Form.new_form(fields)
 
   # post the form and refresh the screen
@@ -49,24 +49,24 @@ begin
       # Go to the end of the present buffer
       # Leaves nicely at the last character
       Ncurses::Form.form_driver(form, Ncurses::Form::REQ_END_LINE)
-      
+
     when Ncurses::KEY_UP
       #Go to previous field
       Ncurses::Form.form_driver(form, Ncurses::Form::REQ_PREV_FIELD)
       Ncurses::Form.form_driver(form, Ncurses::Form::REQ_END_LINE);
-    else                                                                   
+    else
       # If this is a normal character, it gets Printed
       Ncurses::Form.form_driver(form, ch)
     end
   end
-    
+
   # unpost and free form
   Ncurses::Form.unpost_form(form);
   Ncurses::Form.free_form(form)
   Ncurses::Form.free_field(fields[0]);
   Ncurses::Form.free_field(fields[1]);
 
-  
+
   #using class methods this time
 #  form = Ncurses::Form::FORM.new(fields)
 #  puts "Created form: #{form.inspect}\n"
diff --git a/examples/form2.rb b/examples/form2.rb
@@ -3,12 +3,12 @@
 # Simple example of a form in action, based on the NCURSES Programming HOWTO:
 # http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/
 #
-# All standard field types are created in the form. 
-# Additionnally a custom field is created to illustrate 
+# All standard field types are created in the form.
+# Additionnally a custom field is created to illustrate
 # custom field validation using Ruby Proc objects, as shown in the example.
 #
 # The original example contained the following copyright:
-# Copyright (c) 2001 by Pradeep Padala. This document may be distributed 
+# Copyright (c) 2001 by Pradeep Padala. This document may be distributed
 # under the terms set forth in the LDP license at linuxdoc.org/COPYRIGHT.html.
 
 require 'ncursesw'
@@ -44,20 +44,20 @@ end
 
 fields = Array.new
 
-states = {"MI" => "Michigan", 
-          "VA" => "Virginia", 
+states = {"MI" => "Michigan",
+          "VA" => "Virginia",
           "VE" => "Vermont"}
-fieldcheck = proc { |afield| 
+fieldcheck = proc { |afield|
   val = afield.field_buffer(0)
   val.strip!
-  if (states[val] != nil) 
+  if (states[val] != nil)
     afield.set_field_buffer(0,states[val])
     return true
   else
     return false
   end
 }
-charcheck = proc { |ch| 
+charcheck = proc { |ch|
   if (('A'..'Z').include?(ch))
     return true
   else
@@ -73,7 +73,7 @@ begin
   Ncurses.noecho();
   Ncurses.keypad(stdscr, true);
 
-  # Initialize few color pairs 
+  # Initialize few color pairs
   Ncurses.init_pair(1, COLOR_RED, COLOR_BLACK);
   Ncurses.init_pair(2, COLOR_BLACK, COLOR_WHITE);
   Ncurses.init_pair(3, COLOR_BLACK, COLOR_BLUE);
@@ -108,7 +108,7 @@ begin
   cols = Array.new()
   my_form.scale_form(rows, cols);
 
-  # Create the window to be associated with the form 
+  # Create the window to be associated with the form
   my_form_win = WINDOW.new(rows[0] + 3, cols[0] + 14, 1, 1);
   my_form_win.bkgd(Ncurses.COLOR_PAIR(3));
   my_form_win.keypad(TRUE);
@@ -133,7 +133,7 @@ begin
   my_form_win.mvaddstr(16, 2, "Regexp")
   my_form_win.mvaddstr(18, 2, "IP")
   my_form_win.mvaddstr(20, 2, "Custom")
-  
+
   my_form_win.wrefresh();
 
   stdscr.mvprintw(Ncurses.LINES - 2, 28, "Use UP, DOWN arrow keys to switch between fields");
@@ -150,7 +150,7 @@ begin
       # Go to the end of the present buffer
       # Leaves nicely at the last character
       my_form.form_driver(REQ_END_LINE);
-      
+
     when KEY_UP
       # Go to previous field
       my_form.form_driver(REQ_VALIDATION);
@@ -168,7 +168,7 @@ begin
     when KEY_BACKSPACE
       my_form.form_driver(REQ_DEL_PREV);
     else
-      # If this is a normal character, it gets Printed    
+      # If this is a normal character, it gets Printed
       my_form.form_driver(ch);
     end
   end
diff --git a/menu_wrap.h b/menu_wrap.h
@@ -1,10 +1,10 @@
 /*
  * This is a curses menu wrapper as part of ncurses-ruby.
- * It borrows heavily from form_wrap.h. 
+ * It borrows heavily from form_wrap.h.
  * Contributed by Earle Clubb <eclubb@valcom.com>
  * Valcom Inc. <http://www.valcom.com>
  * Copyright 2007
- * 
+ *
  *  This module is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
  *  License as published by the Free Software Foundation; either
diff --git a/panel_wrap.c b/panel_wrap.c
@@ -2,7 +2,7 @@
  * ncurses-ruby is a ruby module for accessing the FSF's ncurses library
  * (C) 2002 Tobias Peters <t-peters@berlios.de>
  * (C) 2011 Tobias Herzke
- * 
+ *
  *  This module is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
  *  License as published by the Free Software Foundation; either
@@ -163,7 +163,7 @@ void init_panel(void)
                                1);
     rb_define_method(cPANEL, "hide_panel",
                      (&rbncurs_c_hide_panel), 0);
-    
+
     rb_define_method(cPANEL, "hide",
                      (&rbncurs_c_hide_panel), 0);
     rb_define_singleton_method(mPanel, "show_panel",
@@ -171,14 +171,14 @@ void init_panel(void)
                                1);
     rb_define_method(cPANEL, "show_panel",
                      (&rbncurs_c_show_panel), 0);
-    
+
     rb_define_method(cPANEL, "show",
                      (&rbncurs_c_show_panel), 0);
     rb_define_singleton_method(mPanel, "top_panel",
                                (&rbncurs_m_top_panel), 1);
     rb_define_method(cPANEL, "top_panel",
                      (&rbncurs_c_top_panel), 0);
-    
+
     rb_define_method(cPANEL, "top",
                      (&rbncurs_c_top_panel), 0);
     rb_define_singleton_method(mPanel, "bottom_panel",
@@ -186,7 +186,7 @@ void init_panel(void)
                                1);
     rb_define_method(cPANEL, "bottom_panel",
                      (&rbncurs_c_bottom_panel), 0);
-    
+
     rb_define_method(cPANEL, "bottom",
                      (&rbncurs_c_bottom_panel), 0);
     rb_define_singleton_method(mPanel, "new_panel",
@@ -229,7 +229,7 @@ void init_panel(void)
     rb_define_method(cPANEL, "panel_userptr",
                      (&rbncurs_c_panel_userptr),
                      0);
-    rb_define_method(cPANEL, "userptr",                
+    rb_define_method(cPANEL, "userptr",
                      (&rbncurs_c_panel_userptr),
                      0);
     rb_define_singleton_method(mPanel, "move_panel",
diff --git a/panel_wrap.h b/panel_wrap.h
@@ -2,7 +2,7 @@
  * ncurses-ruby is a ruby module for accessing the FSF's ncurses library
  * (C) 2002 Tobias Peters <t-peters@berlios.de>
  * (C) 2011 Tobias Herzke
- * 
+ *
  *  This module is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
  *  License as published by the Free Software Foundation; either