Added support for newlines instead of overflow on kb manager