File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ REBINT Mode_Syms[] = {
454
454
args = Find_Refines (ds , ALL_WRITE_REFS );
455
455
spec = D_ARG (2 ); // data (binary, string, or block)
456
456
457
- if (!(IS_BINARY (spec ) || IS_STRING (spec ))) {
457
+ if (!(IS_BINARY (spec ) || IS_STRING (spec ) || ( IS_BLOCK ( spec ) && ( args & AM_WRITE_LINES )) )) {
458
458
//Trap1(RE_INVALID_ARG, spec);
459
459
REB_MOLD mo = {0 };
460
460
Reset_Mold (& mo );
Original file line number Diff line number Diff line change @@ -108,10 +108,12 @@ if system/platform = 'Windows [
108
108
--assert [type: file size: 51732 ] = query /mode file [type: size: ]
109
109
close file
110
110
111
- --test-- "write/lines - issue/2102 "
111
+ --test-- "write/lines"
112
112
;@@ https://github.com/Oldes/Rebol-issues/issues/2102
113
113
write /lines %tmp.txt {a^/ }
114
114
--assert ["a" "" ] = read /lines %tmp.txt
115
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2429
116
+ --assert "a^/ b^/ " = read /string write /lines %tmp.txt ["a" "b" ]
115
117
delete %tmp.txt
116
118
117
119
--test-- "read/lines - issue/1794"
You can’t perform that action at this time.
0 commit comments