Hi, Sharriff,
How about separating presentation from content?
>> somedata: [
[ name "sharriff"
[ log-name "sharriff"
[ other-label "value"
[ ]
>> append somedata [language "REBOL"]
>> append somedata [flavor "strawberry"]
>> append somedata [phone "800-555-1212"]
== [
name "sharriff"
log-name "sharriff"
other-label "value" language "REBOL" flavor "strawberry"
phone "800-555-1212...
>> present: func [b [block!]] [
[ print "["
[ foreach [name value] b [
[ print [" " mold name mold value]
[ ]
[ print "]"
[ ]
>> present somedata
[
name "sharriff"
log-name "sharriff"
other-label "value"
language "REBOL"
flavor "strawberry"
phone "800-555-1212"
]
-jn-
[EMAIL PROTECTED] wrote:
>
> 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? I would like my blocks formatted:
>
> [
> name "sharriff"
> log-name "sharriff"
> other-label "value"
> ]
>
> best regards
>
> Sharriff Aina
> med.iq information & quality in healthcare AG
--
; Joel Neely [EMAIL PROTECTED] 901-263-4460 38017/HKA/9677
REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip
do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] {
| e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]