mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-16 07:09:54 +00:00
c_wrapper_generator: Optimised prologue spacing.
Signed-off-by: Minos Galanakis <[email protected]>
This commit is contained in:
@@ -94,9 +94,8 @@ class Base:
|
|||||||
prologue += "#include {}\n".format(include)
|
prologue += "#include {}\n".format(include)
|
||||||
|
|
||||||
# Make certain there is an empty line at the end of this section.
|
# Make certain there is an empty line at the end of this section.
|
||||||
for i in [-1, -2]:
|
prologue += '\n' if self._INCLUDES else '\n\n'
|
||||||
if prologue[i] != '\n':
|
|
||||||
prologue += ('\n')
|
|
||||||
out.write(prologue)
|
out.write(prologue)
|
||||||
|
|
||||||
def _write_epilogue(self, out: typing_util.Writable, header: bool) -> None:
|
def _write_epilogue(self, out: typing_util.Writable, header: bool) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user