format lines so they are not too log