From 06926e01538a98aababb936e89f4954d8ae5cc5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?=
 <stepan@adjemian.eu>
Date: Wed, 11 Oct 2023 15:47:57 +0200
Subject: [PATCH] Bug fix (missing semicolon).

---
 matlab/aggregate.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/aggregate.m b/matlab/aggregate.m
index 14c1ae6cb..979a9d930 100644
--- a/matlab/aggregate.m
+++ b/matlab/aggregate.m
@@ -274,9 +274,9 @@ for i=1:rows(elist)
         fprintf(fid, '\t%s %s\n', elist{i,1}, elist{i,2});
     end
 end
+fprintf(fid, ';\n\n');
 if exist('plist', 'var') && ~isempty(plist)
     % Print list of parameters.
-    fprintf(fid, ';\n\n');
     fprintf(fid, 'parameters\n');
     for i=1:length(plist)
         fprintf(fid, '\t%s\n', plist{i});
@@ -296,8 +296,8 @@ if exist('xlist', 'var') && ~isempty(xlist)
             fprintf(fid, '\t%s %s\n', xlist{i,1}, xlist{i,2});
         end
     end
+    fprintf(fid, ';\n');
 end
-fprintf(fid, ';\n');
 skipline(1, fid)
 % Provide an interface to flip endogenous and exogenous variables. Active if only macrovariable
 % InvertModel is set to True. The calls to the change_type command must be provided in the file
-- 
GitLab