Fixed pseudotext,, misc cleanup

Don't check for CR without LF, which could be valid in some file types,
and in any case is not our problem. Make functions 25 lines or less
where possible.