restore spaces at the end of lines that NetBeans removed