> 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/
-><-


Reply via email to