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

ruby-changes:48781

From: nobu <ko1@a...>
Date: Fri, 24 Nov 2017 14:45:03 +0900 (JST)
Subject: [ruby-changes:48781] nobu:r60897 (trunk): workspace.rb: one more space

nobu	2017-11-24 14:44:58 +0900 (Fri, 24 Nov 2017)

  New Revision: 60897

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60897

  Log:
    workspace.rb: one more space

  Modified files:
    trunk/lib/irb/workspace.rb
Index: lib/irb/workspace.rb
===================================================================
--- lib/irb/workspace.rb	(revision 60896)
+++ lib/irb/workspace.rb	(revision 60897)
@@ -119,7 +119,7 @@ EOF https://github.com/ruby/ruby/blob/trunk/lib/irb/workspace.rb#L119
       start_pos = [pos - 5, 0].max
       end_pos   = [pos + 5, lines.size - 1].min
 
-      fmt = "%2s %#{end_pos.to_s.length}d: %s"
+      fmt = " %2s %#{end_pos.to_s.length}d: %s"
       body = (start_pos..end_pos).map do |current_pos|
         sprintf(fmt, pos == current_pos ? '=>' : '', current_pos + 1, lines[current_pos])
       end.join("")

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

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