   open: ->
     text = ''
     add = (txt) -> text += (txt ? '') + '\n'
+
+    printSection = (title, data) ->
+      add '\n' + title + '\n-----'
+      maxS = maxC = maxT = 0
+      for label, c of data
+        maxS = Math.max maxS, c.sloc
+        maxC = Math.max maxC, c.cloc
+        maxT = Math.max maxT, c.loc
+        ws = ('' + maxS).length + 1
+        wc = ('' + maxC).length + 1
+        wt = ('' + maxT).length + 1
+      for label, c of data
+        add pad(c.sloc, ws) + pad(c.cloc, wc) + pad(c.loc, wt) + '  ' + label
 
     atom.workspaceView.open('Line Count').then (editor) ->
       rootDirPath = atom.project.getRootDirectory().path

  for k, v of b
    a[k] ?= 0
    a[k] += v


module.exports =


  'html'
]

pad = (num, w) ->
  num = '' + num
  while num.length < w then num = ' ' + num
  ' ' + num

addAttrs = (sfx, aIn, b) ->
