Added an additional check in single line algorithm to make sure the last printable character renders when height may be a factor.