Skip to content
  • Javier Jardón's avatar
    Standarize indentation in all the .bst files · 5a24662c
    Javier Jardón authored
    So they do not get modified when we run "bst track"
    
    I have used the current script (Thanks Abderrahim):
    
    bst_fmt.py:
    "
    
    from ruamel.yaml import round_trip_load, round_trip_dump
    
    import sys
    
    for filename in sys.argv[1:]:
        print(filename)
        with open(filename) as f:
            content = round_trip_load(f)
    
        with open(filename, 'w') as f:
            round_trip_dump(content, f)
    "
    
    Then:
    
    > find . -iname '*.bst' -exec ./bst_fmt.py {} \;
    5a24662c