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

[ALLY] Re: Text List

From: al:bri:xtra at: 13-Nov-2000 23:04

Phil wrote:
> I am trying to indent some text with tabs in a text list .... > > Why don't the tabs get recognised on the first line?? Is this a known
bug? Congratulations! You've found a bug! And it's an interesting one too! Look what happens to t-list _AFTER_ "view layout [...]" is executed:
>> t-list: []
== []
>> for i 3 10 1 [insert tail t-list join "Line ###>" [ i "^(tab)^(tab)"
Data After Tab ]] == []
>> probe t-list
["Line ###>3^-^-Data After Tab" "Line ###>4^-^-Data After Tab" "Line ###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab" " Line ###>7^-^-Data After Tab" "Line ###>8^-^-Data After Tab" "Line ###>9^-^-Data After Tab" "Line ###>10^-^-Data After Tab"] == ["Line ###>3^-^-Data After Tab" "Line ###>4^-^-Data After Tab" "Line ###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab Li... Note that the two tabs after "Line ###>3" are present in the first line.
>> view layout [text-list data t-list 400x400]
Now watch them disapear!
>> probe t-list
["Line ###>3 Data After Tab" "Line ###>4^-^-Data After Tab" "Line ###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab" "Lin e ###>7^-^-Data After Tab" "Line ###>8^-^-Data After Tab" "Line ###>9^-^-Data After Tab" "Line ###>10^-^-Data After Tab"] == ["Line ###>3 Data After Tab" "Line ###>4^-^-Data After Tab" "Line ###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab" " Line ... Note that the two tabs after "Line ###>3" have vanished! I've sent this on to feedback as well. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/