@@ -604,6 +604,7 @@ STOID Mold_Block_Series(REB_MOLD *mold, REBSER *series, REBCNT index, REBYTE *se
604
604
REBOOL line_flag = FALSE; // newline was part of block
605
605
REBOOL had_lines = FALSE;
606
606
REBVAL * value = BLK_SKIP (series , index );
607
+ REBOOL indented = !GET_MOPT (mold , MOPT_INDENT );
607
608
608
609
if (!sep ) sep = b_cast ("[]" );
609
610
@@ -631,7 +632,7 @@ STOID Mold_Block_Series(REB_MOLD *mold, REBSER *series, REBCNT index, REBYTE *se
631
632
value = BLK_SKIP (series , index );
632
633
while (NOT_END (value )) {
633
634
if (VAL_GET_LINE (value )) {
634
- if (sep [1 ] || line_flag ) New_Indented_Line (mold );
635
+ if (indented && ( sep [1 ] || line_flag ) ) New_Indented_Line (mold );
635
636
had_lines = TRUE;
636
637
}
637
638
line_flag = TRUE;
@@ -643,7 +644,7 @@ STOID Mold_Block_Series(REB_MOLD *mold, REBSER *series, REBCNT index, REBYTE *se
643
644
644
645
if (sep [1 ]) {
645
646
mold -> indent -- ;
646
- if (VAL_GET_LINE (value ) || had_lines ) New_Indented_Line (mold );
647
+ if (indented && ( VAL_GET_LINE (value ) || had_lines ) ) New_Indented_Line (mold );
647
648
Append_Byte (out , sep [1 ]);
648
649
}
649
650
@@ -657,6 +658,7 @@ STOID Mold_Block(REBVAL *value, REB_MOLD *mold)
657
658
REBSER * series = mold -> series ;
658
659
REBFLG over = FALSE;
659
660
661
+
660
662
if (SERIES_WIDE (VAL_SERIES (value )) == 0 )
661
663
Crash (RP_BAD_WIDTH , sizeof (REBVAL ), 0 , VAL_TYPE (value ));
662
664
0 commit comments