P.S. note that my implementations in this thread probably do the
wrong thing for improperly indented text.

This is mostly because I was not thinking about such cases, but
also I'm reluctant to "fix" the problem because I do not know what
a real fix should look like.

Example of "bad" indentation:

example=:0 :0
line 1
       line 2
  line 3
       line 4
    line 5
)

I know python does something somewhat reasonable for this
case, but I'm not quite sure what.  I suspect it treats the above as

example2=:0 :0
line 1
line 2
line 3
line 4
line 5
)

In other words, instead of using indentation=: +/ <./\ ' '=|:mat
I think python uses something far more elaborate.

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to