Exemple #1
0
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)
Exemple #2
0
 def fix_label(label):
     label = self.core.get_aliased_name(label)
     return util.fix_label(label)