Vertical Indent by recursive

while 1:
 o=[];l=0
 for c in raw_input():l-=c>"(";o+=" "*l+c+" "*9,;l+=c<")"
 for e in zip(*o):
\x09f=`e`[2::5].rstrip()
\x09if f:print f

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page