-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementsomething nice to have but it is not neither critical nor urgentsomething nice to have but it is not neither critical nor urgent
Milestone
Description
Describe the feature you'd like
It is not uncommon to have a code that outputs one or more empty lines at the begin of stream before writing anything else.
Because byexample requires non-empty lines in the expected string, the user must or use <...> or +rm=~ plus possibly +norm-ws.
This obviously is annoying.
The proposal is to ignore any empty line (with or without spaces) at the begin of the got.
Additional context (optional)
Considerations:
>>> print("\n \nSome line") # should work as it is correct
<...>
Some line
>>> print("\n \nSome line") # should work as it is correct
<...>Some line
>>> print("\n \nSome line") # should work too (empty lines skipped)
Some line>>> print("\n \n Some line") # should fail (missing indentation)
<...>
Some line
>>> print("\n \n Some line") # should work as it is correct
<...>Some line
>>> print("\n \n Some line") # should fail (missing indentation)
Some line>>> print("\n \n Some line") # +norm-ws should work
<...>
Some line
>>> print("\n \n Some line") # +norm-ws should work
<...>Some line
>>> print("\n \n Some line") # +norm-ws should work
Some lineMetadata
Metadata
Assignees
Labels
enhancementsomething nice to have but it is not neither critical nor urgentsomething nice to have but it is not neither critical nor urgent