code: def decorateSubHeader(title, columnWidths, options):
      title = title.lower()
      if title != options.sortCategory:
          s = "| %*s%*s%*s%*s%*s " % (
              columnWidths.getWidth(title, "min"), "min",
              columnWidths.getWidth(title, "med"), "med",
              columnWidths.getWidth(title, "ave"), "ave",
              columnWidths.getWidth(title, "max"), "max",
              columnWidths.getWidth(title, "total"), "total")
          return s
      else:
          s = "| "
          for field, width in [("min", columnWidths.getWidth(title, "min")),
                               ("med", columnWidths.getWidth(title, "med")),
                               ("ave", columnWidths.getWidth(title, "ave")),
                               ("max", columnWidths.getWidth(title, "max")),
                               ("total", columnWidths.getWidth(title, "total"))]:
              if options.sortField == field:
                  s += "%*s*" % (width - 1, field)
              else:
                  s += "%*s" % (width, field)
          s += " "
          return s