REBOL3 tracker
  0.9.12 beta
Ticket #0001439 User: anonymous

Project:



rss
TypeBug Statustested Date21-Jan-2010 17:42
Versionalpha 96 CategoryNative Submitted byCarl
PlatformAll Severityminor Prioritynormal

Summary Incorrect newline break after MOLD/only of block
Description See example below. The 1 and 2 should be on separate lines. The problem could also be somewhere in LOAD or TRANSCODE; I've not had the chance to investigate it further.

Note that MOLD w/o /only works as expected.
Example code
; LOAD not shown here, because it is at the level of script loading.
print mold/only [1
2
3
]

1 2 <-- wrong
3

Assigned ton/a Fixed inalpha 97 Last Update8-Feb-2010 03:27


Comments
(0001920)
BrianH
24-Jan-2010 05:20

It's not LOAD or TRANSCODE, it's just MOLD/only. Here's some test code that proves it.

>> load "[1^/2^/3^/]"
== [1
2
3
]
>> mold load "[1^/2^/3^/]"
== {[1
2
3
]}
>> mold/only load "[1^/2^/3^/]"
== "1 2^/3"
>> mold/only load "[1 2^/3^/4^/]"
== "1 2 3^/4"
>> mold/only load "[1 2^/3^/4^/5]"
== "1 2 3^/4^/5"

MOLD/only ignores the first newline of a block, no matter how many elements are before it. It should only ignore leading newlines that are before the first element, the same as it does with trailing newlines.

Date User Field Action Change
8-Feb-2010 03:27 BrianH Status Modified built => tested
4-Feb-2010 18:01 carl Fixedin Modified => alpha 97
4-Feb-2010 18:01 carl Status Modified reviewed => built
24-Jan-2010 05:20 BrianH Comment : 0001920 Added -
24-Jan-2010 05:08 BrianH Summary Modified Incorrect newline break after MOLD/only of LOAD on block => Incorrect newline break after MOLD/only of block
24-Jan-2010 05:08 BrianH Description Modified -
24-Jan-2010 05:08 BrianH Code Modified -
24-Jan-2010 05:08 BrianH Category Modified Unspecified => Native
24-Jan-2010 05:08 BrianH Status Modified submitted => reviewed
21-Jan-2010 17:42 carl Ticket Added -