From f285a8e9fab6615647e49bec0c0c1a9c30456856 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 8 Oct 2023 12:33:35 +0200 Subject: [PATCH] doc --- .github/formats-info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))