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

[REBOL] Re: Blocks of strings in text-lists.

From: greggirwin:mindspring at: 6-May-2002 9:38

Hi Jason, <<
> How about this? > > view layout [text-list data [["aaaaa" "^-bb"]["cc" "^-dd"]]]
How do you suggest to set/align the TABS when there are long words?
That can be a bit of work with proportional fonts. If you just count chars and spaces, it's not so bad. You just decide at what "position" the tabs should fall, subtract the length of the leading string, and pad accordingly. A "smart tab" feature would look at all the items in the list and find the longest one, using that as a guide. You could think of it like padding with spaces, but tabs count for n spaces, instead of one. --Gregg