[logaling-commit] logaling/logaling-command [fix-format-output] Add note

Back to archive index

null+****@clear***** null+****@clear*****
Sat Jul 21 11:11:41 JST 2012


SHIMADA Koji	2012-07-21 11:11:41 +0900 (Sat, 21 Jul 2012)

  New Revision: 8360cbf58b15682e8338d9ab1a6d127aa5b1bf31
  https://github.com/logaling/logaling-command/commit/8360cbf58b15682e8338d9ab1a6d127aa5b1bf31

  Log:
    Add note

  Modified files:
    lib/logaling/command/renderers.rb

  Modified: lib/logaling/command/renderers.rb (+2 -0)
===================================================================
--- lib/logaling/command/renderers.rb    2012-07-20 16:32:39 +0900 (dc7d37b)
+++ lib/logaling/command/renderers.rb    2012-07-21 11:11:41 +0900 (f33c2c8)
@@ -108,6 +108,8 @@ module Logaling::Command
 
       private
       def string_display_width(string)
+        # It should refer to the following URL and improve.
+        # https://github.com/test-unit/test-unit/blob/master/lib/test/unit/diff.rb#L349
         string.each_char.map{|char| char_display_width(char) }.inject(0, &:+)
       end
 
-------------- next part --------------
An HTML attachment was scrubbed...
Télécharger 



More information about the logaling-commit mailing list
Back to archive index