diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index e6513450a906640b72cb1bf3e3a09fb689d3d864..3cdfd47a332db5783eb1523f58dd4c20b4079173 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2003-2019 Dynare Team
+ * Copyright © 2003-2020 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -1870,7 +1870,7 @@ ModelTree::writeLatexModelFile(const string &mod_basename, const string &latex_b
               }
 
           if (wrote_eq_tag)
-            content_output << "]";
+            content_output << "]" << endl;
         }
 
       content_output << R"(\begin{dmath})" << endl;