shortend description tags

This commit is contained in:
Kevin Veen-Birkenbach 2023-09-15 14:07:19 +02:00
parent ba2a345305
commit 36c5b62812

View File

@ -79,14 +79,14 @@ class DirectoryHandler:
if no_comments:
file_type = os.path.splitext(file_path)[1]
content = CodeProcessor.remove_comments(content, file_type)
print(f"======== File Path: {file_path} ========")
print(f"<< START: {file_path} >>")
if compress:
compressed_content = CodeProcessor.compress(content)
print(f"======== Compressed Code ========")
print(f"COMPRESSED CODE: ")
print(compressed_content)
else:
print(content)
print("==================================\n")
print("<< END >>\n")
except UnicodeDecodeError:
print(f"Warning: Could not read file due to encoding issues: {file_path}")
exit(1)