Tidy print out of indexes and remove LF from notices