Java/C#: Improve the newlines in the generated model files.

This commit is contained in:
Michael Nebel
2022-12-01 10:54:42 +01:00
parent b2dd29ff05
commit 5194108233

View File

@@ -180,8 +180,7 @@ extensions:
{sinkAddsTo}
{sourceAddsTo}
{summaryAddsTo}
{negativeSummaryAddsTo}
"""
{negativeSummaryAddsTo}"""
def makeTypeBasedContent(self):
if self.generateTypeBasedSummaries:
@@ -189,13 +188,11 @@ extensions:
else:
typeBasedSummaryAddsTo = ""
return f"""
# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
return f"""# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
# Definitions of type based summaries in the {self.friendlyname} framework.
extensions:
{typeBasedSummaryAddsTo}
"""
{typeBasedSummaryAddsTo}"""
def save(self, content, target):
with open(target, "w") as targetYml: