Hi Gregg,
Gregg Irwin wrote:
> hi Ammon,
>
> << Just a shot in the dark (I am still not sure what you are attempting, an
> example maybe?) Have you tried placing the word 'newline in where you
> wanted
> a new line? and I think that there is a similar one for tab IIRC. >>
>
> Yup. Tried various combinations of things, reducing, composing, etc. but no
> luck so far.
>
> The goal is to write out, to a file, something like this:
>
> item-1-id [
> value 0
> mail [EMAIL PROTECTED]
> ]
>
> item-2-id [
> value 1
> mail [EMAIL PROTECTED]
> ]
I guess writing a pretty printer is your only chance, maybe something
like this will do:
a: [item-1-id [value 0 mail [EMAIL PROTECTED]] item-2-id [value 1 mail
[EMAIL PROTECTED]]]
parse a [
some [
set id word! (print [id "["])
into [
some [
set name word!
set val any-type!
(print [ " " name val ])
]
(print "]")
]
]
]
which gives
item-1-id [
value 0
mail [EMAIL PROTECTED]
]
item-2-id [
value 1
mail [EMAIL PROTECTED]
]
I hope that helps,
Ingo
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.