Fixed issue #259 by checking if text contains more than one lines.