File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -900,6 +900,7 @@ STOID Mold_Object(REBVAL *value, REB_MOLD *mold)
900
900
REBVAL * words ;
901
901
REBVAL * vals ; // first value is context
902
902
REBCNT n ;
903
+ REBOOL indented = !GET_MOPT (mold , MOPT_INDENT );
903
904
904
905
ASSERT (VAL_OBJ_FRAME (value ), RP_NO_OBJECT_FRAME );
905
906
@@ -927,7 +928,11 @@ STOID Mold_Object(REBVAL *value, REB_MOLD *mold)
927
928
!VAL_GET_OPT (words + n , OPTS_HIDE ) &&
928
929
((VAL_TYPE (vals + n ) > REB_NONE ) || !GET_MOPT (mold , MOPT_NO_NONE ))
929
930
){
930
- New_Indented_Line (mold );
931
+ if (indented )
932
+ New_Indented_Line (mold );
933
+ else if (n > 1 )
934
+ Append_Byte (mold -> series , ' ' );
935
+
931
936
Append_UTF8 (mold -> series , Get_Sym_Name (VAL_WORD_SYM (words + n )), -1 );
932
937
//Print("Slot: %s", Get_Sym_Name(VAL_WORD_SYM(words+n)));
933
938
Append_Bytes (mold -> series , ": " );
@@ -936,7 +941,7 @@ STOID Mold_Object(REBVAL *value, REB_MOLD *mold)
936
941
}
937
942
}
938
943
mold -> indent -- ;
939
- New_Indented_Line (mold );
944
+ if ( indented ) New_Indented_Line (mold );
940
945
Append_Byte (mold -> series , ']' );
941
946
942
947
End_Mold (mold );
You can’t perform that action at this time.
0 commit comments