Changeset 6527bcd67e083c4a08555446cf6020693ada4fdd

Show
Ignore:
Timestamp:
03/24/2008 11:03:38 AM (10 months ago)
Author:
Robin Luckey <robin@Tangier.local>
git-committer:
Robin Luckey <robin@Tangier.local> 1206381818 -0700
git-parent:

[cc77c844971abc101b94fd9a7a093c0526ab484b]

git-author:
Robin Luckey <robin@Tangier.local> 1206381818 -0700
Message:

[FIX] For --individual, move filenames to end of line (helps readability with long names). Whitespace cleanups.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bin/ohcount

    rcc77c84 r6527bcd  
    104104  end 
    105105 
    106         def individual 
     106 def individual 
    107107    STDOUT.write "Examining #{files.size} file(s)" 
    108108 
    109                 puts 
    110     puts "Ohloh Line Count".center(76) 
    111     puts "File                                             Language             Code    Comment  Comment %      Blank      Total
    112     puts "-----------------------------------------------  --------------  ---------  ---------  ---------  ---------  ---------" 
     109   puts 
     110    puts "Ohloh Line Count".center(76) 
     111    puts "Language             Code    Comment  Comment %      Blank      Total  File
     112    puts "--------------  ---------  ---------  ---------  ---------  ---------  -----------------------------------------------" 
    113113 
    114114    files.each do |file| 
     
    132132 
    133133  def write_individual_row(file, name, code, comment, blank) 
    134     printf("%-48s", file) 
    135     printf(" %-14s",name) 
     134    printf("%-14s",name) 
    136135    printf(" %10d",code) 
    137136    printf(" %10d",comment) 
     
    142141    end 
    143142    printf(" %10d",blank) 
    144     printf(" %10d\n",code+comment+blank) 
     143    printf(" %10d",code+comment+blank) 
     144    printf("  %s\n", file) 
    145145  end 
    146146