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:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user