From dcdbd85b1084060e5d0f7f16ceea0d398af6b153 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 10 Oct 2023 17:41:38 -0400
Subject: [PATCH] Bytecode: fix indentation in output of
 print_bytecode_{static,dynamic}_model commands

---
 mex/sources/bytecode/Evaluate.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mex/sources/bytecode/Evaluate.cc b/mex/sources/bytecode/Evaluate.cc
index b7a3594716..732d1085f6 100644
--- a/mex/sources/bytecode/Evaluate.cc
+++ b/mex/sources/bytecode/Evaluate.cc
@@ -2248,7 +2248,7 @@ Evaluate::printCurrentBlock()
         {
           string s;
           tie(s, it_code) = print_expression(it_code);
-          if (s == "if (evaluate)" || s == "else")
+          if (s == "if (~evaluate)" || s == "else")
             space = false;
           if (s.length() > 0)
             {
@@ -2258,7 +2258,7 @@ Evaluate::printCurrentBlock()
                 mexPrintf("%s\n", s.c_str());
               mexEvalString("drawnow;");
             }
-          if (s == "if (evaluate)" || s == "else")
+          if (s == "if (~evaluate)" || s == "else")
             space = true;
         }
     }
-- 
GitLab