diff --git a/compiler2/record_of.c b/compiler2/record_of.c
index fd28a0907b5455b7d32beb41cd921c3f2f9f657b..79bb59e70cf3b0b1966e27bd965d3e4b2c8c8b00 100644
--- a/compiler2/record_of.c
+++ b/compiler2/record_of.c
@@ -834,7 +834,7 @@ void defRecordOfClass1(const struct_of_def *sdef, output_struct *output)
       "  if(p_td.text->end_decode){\n"
       "    int tl;\n"
       "    if((tl=p_td.text->end_decode->match_begin(p_buf))<0){\n"
-      "          if(no_err){"
+      "          if(no_err){\n"
       "            if(!first_call){\n"
       "              for(int a=more; a<val_ptr->n_elements; a++) "
       "delete val_ptr->value_elements[a];\n"
@@ -2390,7 +2390,7 @@ void defRecordOfClassMemAllocOptimized(const struct_of_def *sdef, output_struct
       "  if(p_td.text->end_decode){\n"
       "    int tl;\n"
       "    if((tl=p_td.text->end_decode->match_begin(p_buf))<0){\n"
-      "          if(no_err){"
+      "          if(no_err){\n"
       "            if(!first_call){\n"
       "              set_size(more);\n"
       "            }\n"