Skip to content

Commit 2243a54

Browse files
committed
Set formatting to False when writing CPPProcess.{h,cc}
To be checked, since it does not make a lot of sense to use a file writer if the formatting is off, we may need to update the writer in order to have consistent formatting.
1 parent ccb6881 commit 2243a54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

madmatrix/model_handling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ def write_process_h_file(self, writer):
20272027
if writer:
20282028
file = self.read_template_file(self.process_template_h) % replace_dict
20292029
# Write the file
2030-
writer.writelines(file)
2030+
writer.writelines(file, formatting=False)
20312031
else:
20322032
return replace_dict
20332033

@@ -2040,7 +2040,7 @@ def write_process_cc_file(self, writer):
20402040
if writer:
20412041
file = self.read_template_file(self.process_template_cc) % replace_dict
20422042
# Write the file
2043-
writer.writelines(file)
2043+
writer.writelines(file, formatting=False)
20442044
else:
20452045
return replace_dict
20462046

0 commit comments

Comments
 (0)