Could this be enforced a bit with using regular expressions. A caret indicates the beginning of line and a dollar sign indicates end of line, so the regular expression “^$” is usually used to indicate a blank line. It might be that you
need to add one or two periods between the caret and the dollar sign to indicate line feeds or carriage returns though it is also possible that Python handles handling different line endings internally.
Jonathan Cohn
From: <nvda@nvda.groups.io> on behalf of Gene <gsasner@...> Reply-To: "nvda@nvda.groups.io" <nvda@nvda.groups.io> Date: Saturday, May 5, 2018 at 12:01 PM To: "nvda@nvda.groups.io" <nvda@nvda.groups.io> Subject: Re: [nvda] Blank lines