コード例 #1
0
ファイル: ecli_scanprinter.py プロジェクト: klauer/ECLI
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)
コード例 #2
0
ファイル: ecli_scanwriter_spec.py プロジェクト: klauer/ECLI
 def fix_label(label):
     label = self.core.get_aliased_name(label)
     return util.fix_label(label)