message-format-wg icon indicating copy to clipboard operation
message-format-wg copied to clipboard

Allow trailing whitespace for complex messages

Open eemeli opened this issue 1 year ago • 1 comments

Fix for a part of #809, CC @lucacasonato

When parsing a complex message, we should be lenient about trailing whitespace, and silently ignore it. It has no meaning, and should not be considered an error.

None of the parser complexity concerns around leading whitespace apply here.

eemeli avatar Jul 01 '24 10:07 eemeli

This is good, but I think we should also do leading whitespace. From my implementation experience, this is a trivial to implement and can be implemented to be as fast as the current spec behavior.

I completely agree, but I'd like to ensure that we at least get trailing whitespace rather than having this blocked by implementation or other concerns about mode detection with leading whitespace.

eemeli avatar Jul 01 '24 13:07 eemeli