You could try to insert a blank line at the end of the file (it should avoid skipping the last line), some patterns are a bit difficult thought (e.g. newline ...)
-- <http://forum.pspad.com/read.php?4,34960,34995> PSPad freeware editor http://www.pspad.com
