Included lines to work on copies of files, and removed .strip() to create the table preamble because it destroyed txt structure.

This commit is contained in:
2024-03-19 14:55:49 +01:00
parent 63e7fb28d0
commit 8004a891aa
2 changed files with 13 additions and 8 deletions

View File

@@ -115,7 +115,8 @@ def read_txt_files_as_dict(filename : str ):
for line_number, line in enumerate(f):
list_of_substrings = line.split(separator)
if not (line == '\n'):
table_preamble += line.strip() #+ "\n"
#table_preamble += line.strip() #+ "\n"
table_preamble += line
if table_header in line:
data_start = True
column_names = []