set indent variable and add newline