Skip to content

Commit 5194108

Browse files
committed
Java/C#: Improve the newlines in the generated model files.
1 parent b2dd29f commit 5194108

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

misc/scripts/models-as-data/generate_flow_model_extensions.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,19 @@ def makeContent(self):
180180
{sinkAddsTo}
181181
{sourceAddsTo}
182182
{summaryAddsTo}
183-
{negativeSummaryAddsTo}
184-
"""
183+
{negativeSummaryAddsTo}"""
185184

186185
def makeTypeBasedContent(self):
187186
if self.generateTypeBasedSummaries:
188187
typeBasedSummaryAddsTo = self.getAddsTo("CaptureTypeBasedSummaryModels.ql", "extSummaryModel")
189188
else:
190189
typeBasedSummaryAddsTo = ""
191190

192-
return f"""
193-
# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
191+
return f"""# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
194192
# Definitions of type based summaries in the {self.friendlyname} framework.
195193
196194
extensions:
197-
{typeBasedSummaryAddsTo}
198-
"""
195+
{typeBasedSummaryAddsTo}"""
199196

200197
def save(self, content, target):
201198
with open(target, "w") as targetYml:

0 commit comments

Comments
 (0)