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

[REBOL] adding line hints when building blocks

From: greggirwin:mindspring at: 21-May-2002 11:55

Hi Gang, If you build a block interactively in the console, with newlines between items, or if you blockify a string with embedded newlines, the block contains line "hints" which are used when the block is printed, molded, etc. Suppose I want to build a block in code, which will be written to a file, and I want it to be formatted nicely in the file (i.e. with newlines and indentation). Is there any way to include formatting hints when building a block, or do you have to build a string and blockify it? I know RT has mentioned that it's less efficient to build a string if you want to DO it, but I haven't found a way to format a block as I build it. Thanks! --Gregg