From dc687c9f75cda3a92688db40d3b0bec266e916f3 Mon Sep 17 00:00:00 2001 From: detherminal <76167420+detherminal@users.noreply.github.com> Date: Sat, 27 May 2023 00:18:13 +0300 Subject: [PATCH] feat: update script to remove space at top --- scripts/doc/copyright.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/doc/copyright.py b/scripts/doc/copyright.py index 678b38c25..4849b40fe 100644 --- a/scripts/doc/copyright.py +++ b/scripts/doc/copyright.py @@ -6,8 +6,7 @@ ignore = [".g.dart", "LICENSE", "external_api_keys.dart"] # To update the header, only change the variable below -header = """ -/* +header = """/* * This file is part of Stack Wallet. * * Copyright (c) 2023 Cypher Stack @@ -32,13 +31,13 @@ def add_text_to_files(folder_path, text, ignored_extensions=[]): with open(file_path, 'r') as file: lines = file.readlines() if len(lines) >= 4: - second_line = lines[1] - third_line = lines[2] - fourth_line = lines[3] + second_line = lines[0] + third_line = lines[1] + fourth_line = lines[2] if second_line.startswith("/*") and third_line.startswith(" *") and fourth_line.startswith(" *"): with open(file_path, 'w') as file: file.seek(0, 0) - file.write(text + ''.join(lines[10:])) + file.write(text + ''.join(lines[9:])) else: with open(file_path, 'w') as file: file.seek(0, 0)