fix error when header is empty
catch case of empty header to not crash
This commit is contained in:
parent
315e3647ab
commit
4c5efa4087
@ -68,6 +68,7 @@ class TexFileToFormat:
|
||||
|
||||
def __format_header(self):
|
||||
new_header = []
|
||||
if self.current_build_info.header:
|
||||
for line in self.current_build_info.header:
|
||||
new_header.append(line.format(
|
||||
source_file=self.src_path.name,
|
||||
|
Loading…
Reference in New Issue
Block a user