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

Normalize newlines when slicing IDL extracts text #1669

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Normalize newlines when slicing IDL extracts text #1669

merged 1 commit into from
Sep 12, 2024

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Sep 12, 2024

IDL extracts are generated using \n as newline delimiter. However, platform-specific newlines may be introduced during curation when patches are applied, meaning that, on Windows, curated extracts may end up with a mix of \n and \r\n characters. This confused the code that read the extracts and dropped the header.

The code now normalizes all newlines to \n before it slices the content.

IDL extracts are generated using `\n` as newline delimiter. However,
platform-specific newlines may be introduced during curation when patches are
applied, meaning that, on Windows, curated extracts may end up with a mix of
`\n` and `\r\n` characters. This confused the code that read the extracts and
dropped the header.

The code now normalizes all newlines to `\n` before it slices the content.
@tidoust tidoust merged commit 26b19e1 into main Sep 12, 2024
1 check passed
@tidoust tidoust deleted the newlines branch September 12, 2024 10:29
tidoust added a commit that referenced this pull request Oct 7, 2024
Code patched:
- Normalize newlines when slicing IDL extracts text (#1669)

Dependencies bumped:
- Bump rollup from 4.21.2 to 4.24.0 (#1680)
- Bump web-specs from 3.21.0 to 3.23.0 (#1683)
- Bump serve-static from 1.15.0 to 1.16.2 (#1671)
- Bump respec from 35.1.1 to 35.1.2 (#1668)
- Bump puppeteer from 23.3.0 to 23.5.0 (#1681)
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.

2 participants