[前][次][番号順一覧][スレッド一覧]

ruby-changes:25908

From: nobu <ko1@a...>
Date: Thu, 29 Nov 2012 11:58:44 +0900 (JST)
Subject: [ruby-changes:25908] nobu:r37965 (trunk): remove trailing spaces.

nobu	2012-11-29 11:58:31 +0900 (Thu, 29 Nov 2012)

  New Revision: 37965

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37965

  Log:
    remove trailing spaces.

  Modified files:
    trunk/NEWS
    trunk/lib/rdoc/markdown/literals_1_9.rb
    trunk/lib/rdoc/markdown.rb
    trunk/lib/rdoc/markup/list.rb
    trunk/lib/rdoc/rd/block_parser.rb
    trunk/lib/rdoc/rd/inline_parser.rb
    trunk/range.c
    trunk/test/ruby/test_thread.rb

Index: lib/rdoc/markdown.rb
===================================================================
--- lib/rdoc/markdown.rb	(revision 37964)
+++ lib/rdoc/markdown.rb	(revision 37965)
@@ -58,7 +58,7 @@
 # ant
 # :   A little insect that is known
 # to enjoy picnics
-# 
+#
 # ```
 #
 # Produces:
@@ -186,7 +186,7 @@
     attr_reader :failing_rule_offset
     attr_accessor :result, :pos
 
-    
+
     def current_column(target=pos)
       if c = string.rindex("\n", target-1)
         return target - c - 1
@@ -15512,7 +15512,7 @@
         self.pos = _save
         break
       end
-      @result = begin;  
+      @result = begin;
                ref = [:inline, @note_order.length]
                @footnotes[ref] = paragraph a
 
Index: lib/rdoc/markup/list.rb
===================================================================
--- lib/rdoc/markup/list.rb	(revision 37964)
+++ lib/rdoc/markup/list.rb	(revision 37965)
@@ -34,7 +34,7 @@
 
   ##
   # Creates a new list of +type+ with +items+.  Valid list types are:
-  # +:BULLET+, +:LABEL+, +:LALPHA+, +:NOTE+, +:NUMBER+, +:UALPHA+ 
+  # +:BULLET+, +:LABEL+, +:LALPHA+, +:NOTE+, +:NUMBER+, +:UALPHA+
 
   def initialize type = nil, *items
     @type = type
Index: lib/rdoc/rd/block_parser.rb
===================================================================
--- lib/rdoc/rd/block_parser.rb	(revision 37964)
+++ lib/rdoc/rd/block_parser.rb	(revision 37965)
@@ -10,7 +10,7 @@
 
 ##
 # RD format parser for headings, paragraphs, lists, verbatim sections that
-# exist as blocks.  
+# exist as blocks.
 
 class BlockParser < Racc::Parser
 
@@ -676,54 +676,54 @@
 # reduce 0 omitted
 
 def _reduce_1(val, _values, result)
- result = RDoc::Markup::Document.new(*val[0]) 
+ result = RDoc::Markup::Document.new(*val[0])
     result
 end
 
 def _reduce_2(val, _values, result)
- raise ParseError, "file empty" 
+ raise ParseError, "file empty"
     result
 end
 
 def _reduce_3(val, _values, result)
- result = val[0].concat val[1] 
+ result = val[0].concat val[1]
     result
 end
 
 def _reduce_4(val, _values, result)
- result = val[0] 
+ result = val[0]
     result
 end
 
 def _reduce_5(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 def _reduce_6(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 # reduce 7 omitted
 
 def _reduce_8(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 def _reduce_9(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 def _reduce_10(val, _values, result)
- result = [RDoc::Markup::BlankLine.new] 
+ result = [RDoc::Markup::BlankLine.new]
     result
 end
 
 def _reduce_11(val, _values, result)
- result = val[0].parts 
+ result = val[0].parts
     result
 end
 
@@ -731,30 +731,30 @@
       # val[0] is like [level, title]
       title = @inline_parser.parse(val[0][1])
       result = RDoc::Markup::Heading.new(val[0][0], title)
-    
+
     result
 end
 
 def _reduce_13(val, _values, result)
       result = RDoc::Markup::Include.new val[0], @include_path
-    
+
     result
 end
 
 def _reduce_14(val, _values, result)
       # val[0] is Array of String
       result = paragraph val[0]
-    
+
     result
 end
 
 def _reduce_15(val, _values, result)
- result << val[1].rstrip 
+ result << val[1].rstrip
     result
 end
 
 def _reduce_16(val, _values, result)
- result = [val[0].rstrip] 
+ result = [val[0].rstrip]
     result
 end
 
@@ -765,7 +765,7 @@
 
       # imform to lexer.
       @in_verbatim = false
-    
+
     result
 end
 
@@ -776,25 +776,25 @@
 
       # imform to lexer.
       @in_verbatim = false
-    
+
     result
 end
 
 def _reduce_19(val, _values, result)
       result << val[1]
-    
+
     result
 end
 
 def _reduce_20(val, _values, result)
       result.concat val[2]
-    
+
     result
 end
 
 def _reduce_21(val, _values, result)
       result << "\n"
-    
+
     result
 end
 
@@ -802,7 +802,7 @@
       result = val
       # inform to lexer.
       @in_verbatim = true
-    
+
     result
 end
 
@@ -816,89 +816,89 @@
 
 def _reduce_27(val, _values, result)
       result = val[0]
-    
+
     result
 end
 
 def _reduce_28(val, _values, result)
       result = val[1]
-    
+
     result
 end
 
 def _reduce_29(val, _values, result)
       result = val[1].push(val[2])
-    
+
     result
 end
 
 def _reduce_30(val, _values, result)
- result = val[0] << val[1] 
+ result = val[0] << val[1]
     result
 end
 
 def _reduce_31(val, _values, result)
- result = [val[0]] 
+ result = [val[0]]
     result
 end
 
 def _reduce_32(val, _values, result)
       result = RDoc::Markup::List.new :BULLET, *val[0]
-    
+
     result
 end
 
 def _reduce_33(val, _values, result)
- result.push(val[1]) 
+ result.push(val[1])
     result
 end
 
 def _reduce_34(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 def _reduce_35(val, _values, result)
       result = RDoc::Markup::ListItem.new nil, val[0], *val[1]
-    
+
     result
 end
 
 def _reduce_36(val, _values, result)
       result = RDoc::Markup::List.new :NUMBER, *val[0]
-    
+
     result
 end
 
 def _reduce_37(val, _values, result)
- result.push(val[1]) 
+ result.push(val[1])
     result
 end
 
 def _reduce_38(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 def _reduce_39(val, _values, result)
       result = RDoc::Markup::ListItem.new nil, val[0], *val[1]
-    
+
     result
 end
 
 def _reduce_40(val, _values, result)
       result = RDoc::Markup::List.new :NOTE, *val[0]
-    
+
     result
 end
 
 def _reduce_41(val, _values, result)
- result.push(val[1]) 
+ result.push(val[1])
     result
 end
 
 def _reduce_42(val, _values, result)
- result = val 
+ result = val
     result
 end
 
@@ -906,77 +906,77 @@
       term = @inline_parser.parse val[0].strip
 
       result = RDoc::Markup::ListItem.new term, *val[1]
-    
+
     result
 end
 
 def _reduce_44(val, _values, result)
       result = RDoc::Markup::List.new :LABEL, *val[0]
-    
+
     result
 end
 
 def _reduce_45(val, _values, result)
- result.push(val[1]) 
+ result.push(val[1])
     result
 end
 
 def _reduce_46(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 def _reduce_47(val, _values, result)
       result = RDoc::Markup::ListItem.new "<tt>#{val[0].strip}</tt>", *val[1]
-    
+
     result
 end
 
 def _reduce_48(val, _values, result)
       result = [val[1]].concat(val[2])
-    
+
     result
 end
 
 def _reduce_49(val, _values, result)
       result = [val[1]]
-    
+
     result
 end
 
 def _reduce_50(val, _values, result)
       result = val[2]
-    
+
     result
 end
 
 def _reduce_51(val, _values, result)
       result = []
-    
+
     result
 end
 
 def _reduce_52(val, _values, result)
- result.concat val[1] 
+ result.concat val[1]
     result
 end
 
 # reduce 53 omitted
 
 def _reduce_54(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 def _reduce_55(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 # reduce 56 omitted
 
 def _reduce_57(val, _values, result)
- result = [] 
+ result = []
     result
 end
 
@@ -990,58 +990,58 @@
 
 def _reduce_62(val, _values, result)
       result = paragraph [val[0]].concat(val[1])
-    
+
     result
 end
 
 def _reduce_63(val, _values, result)
       result = paragraph [val[0]]
-    
+
     result
 end
 
 def _reduce_64(val, _values, result)
       result = paragraph [val[0]].concat(val[1])
-    
+
     result
 end
 
 def _reduce_65(val, _values, result)
       result = paragraph [val[0]]
-    
+
     result
 end
 
 def _reduce_66(val, _values, result)
       result = [val[0]].concat(val[1])
-    
+
     result
 end
 
 def _reduce_67(val, _values, result)
- result.concat val[1] 
+ result.concat val[1]
     result
 end
 
 def _reduce_68(val, _values, result)
- result = val[1] 
+ result = val[1]
     result
 end
 
 def _reduce_69(val, _values, result)
- result = val 
+ result = val
     result
 end
 
 # reduce 70 omitted
 
 def _reduce_71(val, _values, result)
- result = [] 
+ result = []
     result
 end
 
 def _reduce_72(val, _values, result)
- result = [] 
+ result = []
     result
 end
 
Index: lib/rdoc/rd/inline_parser.rb
===================================================================
--- lib/rdoc/rd/inline_parser.rb	(revision 37964)
+++ lib/rdoc/rd/inline_parser.rb	(revision 37965)
@@ -732,12 +732,12 @@
 # reduce 1 omitted
 
 def _reduce_2(val, _values, result)
- result.append val[1] 
+ result.append val[1]
     result
 end
 
 def _reduce_3(val, _values, result)
- result = val[0] 
+ result = val[0]
     result
 end
 
@@ -762,28 +762,28 @@
 def _reduce_13(val, _values, result)
       content = val[1]
       result = inline "<em>#{content}</em>", content
-    
+
     result
 end
 
 def _reduce_14(val, _values, result)
       content = val[1]
       result = inline "<code>#{content}</code>", content
-    
+
     result
 end
 
 def _reduce_15(val, _values, result)
       content = val[1]
       result = inline "+#{content}+", content
-    
+
     result
 end
 
 def _reduce_16(val, _values, result)
       content = val[1]
       result = inline "<tt>#{content}</tt>", content
-    
+
     result
 end
 
@@ -791,13 +791,13 @@
       label = val[1]
       @block_parser.add_label label.reference
       result = "<span id=\"label-#{label}\">#{label}</span>"
-    
+
     result
 end
 
 def _reduce_18(val, _values, result)
       result = "{#{val[1]}}[#{val[2].join}]"
-    
+
     result
 end
 
@@ -805,13 +805,13 @@
       scheme, inline = val[1]
 
       result = "{#{inline}}[#{scheme}#{inline.reference}]"
-    
+
     result
 end
 
 def _reduce_20(val, _values, result)
       result = [nil, inline(val[1])]
-    
+
     result
 end
 
@@ -820,25 +820,25 @@
         'rdoc-label:',
         inline("#{val[0].reference}/#{val[1].reference}")
       ]
-    
+
     result
 end
 
 def _reduce_22(val, _values, result)
       result = ['rdoc-label:', val[0].reference]
-    
+
     result
 end
 
 def _reduce_23(val, _values, result)
       result = ['rdoc-label:', "#{val[0].reference}/"]
-    
+
     result
 end
 
 def _reduce_24(val, _values, result)
       result = [nil, inline(val[1])]
-    
+
     result
 end
 
@@ -847,92 +847,92 @@
         'rdoc-label:',
         inline("#{val[0].reference}/#{val[1].reference}")
       ]
-    
+
     result
 end
 
 def _reduce_26(val, _values, result)
       result = ['rdoc-label:', val[0]]
-    
+
     result
 end
 
 def _reduce_27(val, _values, result)
       ref = val[0].reference
       result = ['rdoc-label:', inline(ref, "#{ref}/")]
-    
+
     result
 end
 
 # reduce 28 omitted
 
 def _reduce_29(val, _values, result)
- result = val[1] 
+ result = val[1]
     result
 end
 
 def _reduce_30(val, _values, result)
- result = val[1] 
+ result = val[1]
     result
 end
 
 def _reduce_31(val, _values, result)
       result = inline val[0]
-    
+
     result
 end
 
 def _reduce_32(val, _values, result)
       result = inline "\"#{val[1]}\""
-    
+
     result
 end
 
 def _reduce_33(val, _values, result)
       result = inline val[0]
-    
+
     result
 end
 
 def _reduce_34(val, _values, result)
       result = inline "\"#{val[1]}\""
-    
+
     result
 end
 
 # reduce 35 omitted
 
 def _reduce_36(val, _values, result)
- result = val[1] 
+ result = val[1]
     result
 end
 
 def _reduce_37(val, _values, result)
- result = inline val[1] 
+ result = inline val[1]
     result
 end
 
 def _reduce_38(val, _values, result)
       result = val[0].append val[1]
-    
+
     result
 end
 
 def _reduce_39(val, _values, result)
       result = val[0].append val[1]
-    
+
     result
 end
 
 def _reduce_40(val, _values, result)
       result = val[0]
-    
+
     result
 end
 
 def _reduce_41(val, _values, result)
       result = inline val[0]
-    
+
     result
 end
 
@@ -940,25 +940,25 @@
 
 def _reduce_43(val, _values, result)
       result = val[0].append val[1]
-    
+
     result
 end
 
 def _reduce_44(val, _values, result)
       result = inline val[0]
-    
+
     result
 end
 
 def _reduce_45(val, _values, result)
       result = val[0].append val[1]
-    
+
     result
 end
 
 def _reduce_46(val, _values, result)
       result = val[0]
-    
+
     result
 end
 
@@ -984,24 +984,24 @@
 
 def _reduce_57(val, _values, result)
       result = val[0]
-    
+
     result
 end
 
 def _reduce_58(val, _values, result)
       result = inline val[0]
-    
+
     result
 end
 
 def _reduce_59(val, _values, result)
       result = inline val[0]
-    
+
     result
 end
 
 def _reduce_60(val, _values, result)
- result << val[1] 
+ result << val[1]
     result
 end
 
@@ -1009,7 +1009,7 @@
 
 def _reduce_62(val, _values, result)
       result << val[1]
-    
+
     result
 end
 
@@ -1017,7 +1017,7 @@
 
 def _reduce_64(val, _values, result)
       result << val[1]
-    
+
     result
 end
 
@@ -1048,7 +1048,7 @@
 # reduce 77 omitted
 
 def _reduce_78(val, _values, result)
- result << val[1] 
+ result << val[1]
     result
 end
 
@@ -1099,13 +1099,13 @@
 def _reduce_101(val, _values, result)
       index = @block_parser.add_footnote val[1].rdoc
       result = "{*#{index}}[rdoc-label:foottext-#{index}:footmark-#{index}]"
-    
+
     result
 end
 
 def _reduce_102(val, _values, result)
       result = "<tt>#{val[1]}</tt>"
-    
+
     result
 end
 
@@ -1122,7 +1122,7 @@
 # reduce 108 omitted
 
 def _reduce_109(val, _values, result)
- result << val[1] 
+ result << val[1]
     result
 end
 
@@ -1130,24 +1130,24 @@
 
 def _reduce_111(val, _values, result)
       result = inline val[0]
-    
+
     result
 end
 
 # reduce 112 omitted
 
 def _reduce_113(val, _values, result)
- result = val[1] 
+ result = val[1]
     result
 end
 
 def _reduce_114(val, _values, result)
- result = val[1] 
+ result = val[1]
     result
 end
 
 def _reduce_115(val, _values, result)
- result = val[1] 
+ result = val[1]
     result
 end
 
@@ -1192,7 +1192,7 @@
 # reduce 135 omitted
 
 def _reduce_136(val, _values, result)
- result << val[1] 
+ result << val[1]
     result
 end
 
Index: lib/rdoc/markdown/literals_1_9.rb
===================================================================
--- lib/rdoc/markdown/literals_1_9.rb	(revision 37964)
+++ lib/rdoc/markdown/literals_1_9.rb	(revision 37965)
@@ -37,7 +37,7 @@
     attr_reader :failing_rule_offset
     attr_accessor :result, :pos
 
-    
+
     def current_column(target=pos)
       if c = string.rindex("\n", target-1)
         return target - c - 1
Index: range.c
===================================================================
--- range.c	(revision 37964)
+++ range.c	(revision 37965)
@@ -489,7 +489,7 @@
  *  - the block returns true for any value which is greater than or
  *    equal to i.
  *
- *  If x is within the range, this method returns the value x. 
+ *  If x is within the range, this method returns the value x.
  *  Otherwise, it returns nil.
  *
  *     ary = [0, 4, 7, 10, 12]
@@ -750,7 +750,6 @@
 	rb_raise(rb_eTypeError, "can't do binary search for %s", rb_obj_classname(beg));
     }
     return range;
-    
 }
 
 static VALUE
Index: NEWS
===================================================================
--- NEWS	(revision 37964)
+++ NEWS	(revision 37965)
@@ -376,7 +376,7 @@
     "each_pair", "eql?", "hash" or "to_h".
 
   * Thread#join, Thread#value
-   
+
     See above.
 
   * Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize and Mutex#sleep
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 37964)
+++ test/ruby/test_thread.rb	(revision 37965)
@@ -870,7 +870,7 @@
     assert_equal(:normal_end,
                  begin
                    t = Thread.new{ sleep 0.2; Process.kill(:INT, $$); :normal_end }
-                   
+
                    Signal.trap :INT do
                      t.value
                    end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]