only pass the final new line bool as suppose to the whole settings objects (as pointed out by @nulltoken)