honour newline configuration when inserting a code template

http://sourceforge.net/p/e-p-i-c/discussion/258687/thread/c2ba481e/