Corrections to \n output

Change-Id: I743687fea75bb93a872ba9bfa691fda088a9f6c2