def format_header(header, width): """ Fix labels (replacing spaces with underscores, for example) and right-justify to the specified width """ return util.fix_label(header).rjust(width)
def fix_label(label): label = self.core.get_aliased_name(label) return util.fix_label(label)