This catches the edge errors I was hitting. Might not catch every problem, but so far it's working well. Also added a little cleanup for export (test book had lots of weird whitespace and line breaks in paragraphs), and changed a var name for some temp files.
This catches the edge errors I was hitting. Might not catch every problem, but so far it's working well. Also added a little cleanup for export (test book had lots of weird whitespace and line breaks in paragraphs), and changed a var name for some temp files.