Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] newlines in saved blocks Re:

From: al:bri:xtra at: 13-Oct-2000 4:54

> I´m trying to save "newlines" to a block, the block is then saved to a
file per CGI:
> >> q: make block! 0 > == [] > >> append q to-word "name" > == [name] > >> append q "sharriff" > == [name "sharriff"] > >> append q to-word "log-name" newline > == #"^/" > >> q > == [name "sharriff" log-name] > > why is this not possible?
Rebol reflects the block as it prefers, not as you'd like.
> I would like my blocks formatted: > [ > name "sharriff" > log-name "sharriff" > other-label "value" > ]
You could try constructing a string equivalent like this:
>> s: rejoin [{
{ name } mold "sharrif" { { log-name } mold "sharrif" { { other-label } mold "value" { { } [ ] == { name "sharrif" log-name "sharrif" other-label "value" }
>> to-block s
== [ name "sharrif" log-name "sharrif" other-label "value" ] I hope that helps! Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/