work around to allow tailing spaces in each line

patterm match failed by spaces before \n (in previous line)