expand text by mokos

n=gets.to_i;gets
n.times{|i|$><<scan(/./).map{|c|i%(n-1)>0?c+' '*(n-2)+c: c*n}<<$/}

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

download

return top