You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the spec does not specify how implementations should handle empty lines. I'd like to suggest an addition to the spec that empty line should be ignored. Furthermore I'd like to suggest that implementations should ignore lines that consist only of whitespace (to be defined by #46).
Use case
There are several use cases:
When editing a song txt manually empty lines can help visually separating different passages of a song.
Unexperienced editors might not realize that empty lines are an error. Allowing implementations to ignore empty lines makes it easier for newcomers to start editing.
Unexperienced editors might not realize the difference between an empty line and a line consisting only of whitespace. These kinds of errors are usually hard to find if you don't know what you're looking for.
Extra info/examples/attachments
Currently implementations have different behavior as far as I can tell:
Vocaluxe ignores empty lines (but not whitespace-only lines)
Performous ignores empty lines (but not whitespace-only lines)
USDB Synced does not ignore empty lines
USDX ignores empty lines only between the header and the first note
Additionally we could also allow leading whitespace (i.e. whitespace before the # in a header or before the note type in the body of a file). However, this does not seem quite as useful to me.
The text was updated successfully, but these errors were encountered:
Allowing empty lines seems reasonable as they can be useful for grouping and are dropped easily.
On the other hand, I don't see any use case for leading whitespace, and lines containing only whitespace would only occur by (rather unlikely) accident. At the same time, this seems slightly more involved to parse correctly, so I wouldn't bother.
Of course, implementations could still choose to be more forgiving and ignore whitepsace lines without causing harm.
Suggestion
Currently the spec does not specify how implementations should handle empty lines. I'd like to suggest an addition to the spec that empty line should be ignored. Furthermore I'd like to suggest that implementations should ignore lines that consist only of whitespace (to be defined by #46).
Use case
There are several use cases:
Extra info/examples/attachments
Currently implementations have different behavior as far as I can tell:
Additionally we could also allow leading whitespace (i.e. whitespace before the
#
in a header or before the note type in the body of a file). However, this does not seem quite as useful to me.The text was updated successfully, but these errors were encountered: