Borderizing Texts by pooq

a=io.read()d=""e=""f=""g=1 for i=1,#a do b=a:sub(i,i)g=3-g if b==" "then g=1 d=d.." | "e=e.." | "f=f.."_|_"else d=d..({" ","|"})[g]e=e..b f=f..({"|","_"})[g]end end print(" "..("_"):rep(#d+2).."\n| "..d.." |\n| "..e.." |\n|_"..f.."_|")

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

download

return to the top page