c_wrapper_generator: Optimised prologue spacing.

Signed-off-by: Minos Galanakis <[email protected]>
This commit is contained in:
Minos Galanakis
2024-07-16 09:50:14 +01:00
parent 5c07d10e83
commit eea3fe35ba
@@ -94,9 +94,8 @@ class Base:
prologue += "#include {}\n".format(include)
# Make certain there is an empty line at the end of this section.
for i in [-1, -2]:
if prologue[i] != '\n':
prologue += ('\n')
prologue += '\n' if self._INCLUDES else '\n\n'
out.write(prologue)
def _write_epilogue(self, out: typing_util.Writable, header: bool) -> None: