Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow whitespace at complex-message start #854

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Allow whitespace at complex-message start #854

merged 3 commits into from
Aug 12, 2024

Conversation

eemeli
Copy link
Collaborator

@eemeli eemeli commented Aug 6, 2024

Closes #610
Closes #809
Closes #848
Closes #849
CC @lucacasonato

As agreed in the balloting under #848, complex messages should be allowed to start with whitespace.

@eemeli eemeli added the syntax Issues related with MF Syntax label Aug 6, 2024
spec/syntax.md Outdated Show resolved Hide resolved
spec/syntax.md Outdated Show resolved Hide resolved
spec/syntax.md Show resolved Hide resolved
spec/syntax.md Outdated Show resolved Hide resolved
spec/message.abnf Show resolved Hide resolved
eemeli and others added 2 commits August 6, 2024 18:04
Co-authored-by: Addison Phillips <addison@unicode.org>
@eemeli eemeli requested a review from aphillips August 6, 2024 15:17
Copy link
Collaborator

@catamorphism catamorphism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks consistent with what we voted on.

@eemeli eemeli linked an issue Aug 8, 2024 that may be closed by this pull request
Copy link
Collaborator

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks consistent with what we voted on.

Agreed.

Copy link

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me too

Copy link
Collaborator

@echeran echeran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I like the extra callout of

Whitespace at the start or end of a simple message is significant,
and a part of the text of the message.

and

Whitespace at the start or end of a complex message is not significant,
and does not affect the processing of the message.

@aphillips aphillips merged commit 20653d7 into main Aug 12, 2024
2 checks passed
@aphillips aphillips deleted the allow-ws-start branch August 12, 2024 16:38
eemeli added a commit to messageformat/messageformat that referenced this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
syntax Issues related with MF Syntax
Projects
None yet
7 participants