import os from typing import List def main(): os.system("npm --prefix ../development/ run compile") output: List[str] = [] with open('../BattleTech-A-Time-of-War.html', 'r') as character_sheet: for line in character_sheet: output.append(line) if line == '\n") with open('../BattleTech-A-Time-of-War.html', 'w') as character_sheet: character_sheet.write("".join(output)) if __name__ == "__main__": main()