add newline prior to writing exception messages - stops exception messages being appending on end of operational reporting lines.
version 4.0.3
fixed bugs in template analyser - freemarker comment start without en don same line is now handled - escapes (backslashes) in quoted string now work
removed sort=yes from dtd ; presence of sortformat= will trigger sort (sortformat="" is special case - to enable sort but use the nodetitle for sortformatting)