changed insert_final_newline attribute to true