More correct line breaks counting in converter