diff --git a/.github/formats-info.py b/.github/formats-info.py index 03c525c5..1cadab65 100644 --- a/.github/formats-info.py +++ b/.github/formats-info.py @@ -317,7 +317,7 @@ class App: with open(file, 'r', encoding='utf-8') as f: is_updating = False for line in f: - line = line.strip() + line = line.strip('\n') # find list section, add all current lines and ignore old ones until next section if line.startswith('### List'): @@ -334,6 +334,8 @@ class App: if not is_updating: doc_lines.append(line) + doc_lines.append('') + with open(file, 'w', encoding='utf-8', newline='\n') as f: f.write('\n'.join(doc_lines))