Better line stripping in parsec

Line stripping was being done during include-file inlining. Some processing after that stage, e.g. Jinja2, could introduce new trailing whitespace that required workarounds when using the parsed lines.  This moves line stripping to the final stage of file parsing.

Closes #850.

Replaces #851.

@matthewrmshin - please review.