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

fix: Allow non-ASCII values in all attributes #1106

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

kesara
Copy link
Member

@kesara kesara commented Feb 19, 2024

PR #1017 allowed Unicord characters everywhere.
This fixes a bug that xml2rfc was guarding against non-ASCII characters in attribute values.
With --warn-bare-unicode, xml2rfc will warn if non-ASCII characters are present in attribute values.

Fixes #1105

@kesara kesara requested a review from rjsparks February 19, 2024 21:30
@kesara kesara force-pushed the fix/non-ascii-attributes branch from 563fe90 to 1e21000 Compare February 19, 2024 23:23
@cabo
Copy link
Contributor

cabo commented Feb 19, 2024

Thanks for the quick fix!

I'm not sure why you are taking out the latinscript tests for the ascii... attributes; I think these were useful.

@kesara
Copy link
Member Author

kesara commented Feb 19, 2024

@cabo My initial thoughts were they are not required any more because all Unicode characters are allowed.
But since they are special ASCII attributes that allow Latin scripts, I guess it's worth keeping them. :)
I'll make a change.

@kesara kesara force-pushed the fix/non-ascii-attributes branch from 1e21000 to 3874ba8 Compare February 20, 2024 00:57
@cabo
Copy link
Contributor

cabo commented Feb 20, 2024

Looks good to me now.

The warning message uses "they" to refer to "non-ASCII content", maybe "it"?

Copy link
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

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

Please include Carsten's grammar suggestion

PR ietf-tools#1017 allowed Unicord characters everywhere.
This fixes a bug that xml2rfc was guarding against non-ASCII characters
in attribute values.
With `--warn-bare-unicode`, xml2rfc will warn if non-ASCII characters are
present in attribute values.

Fixes ietf-tools#1105
@kesara kesara force-pushed the fix/non-ascii-attributes branch from 3874ba8 to 31bfab7 Compare February 20, 2024 18:34
@kesara kesara merged commit 20a5b30 into ietf-tools:main Feb 21, 2024
13 checks passed
@kesara kesara deleted the fix/non-ascii-attributes branch February 21, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Found non-ASCII content in <title> attribute value abbrev="...define short title... ≤ 40 chars"
3 participants