Text formatting optimization (text wrapping, newline interpretation, menu spacing)