Skip to content

GAUD-9790: confirm dialog newline fix#6897

Merged
dlockhart merged 4 commits intomainfrom
GAUD-9790/confirm-dialog-newline-fix
May 1, 2026
Merged

GAUD-9790: confirm dialog newline fix#6897
dlockhart merged 4 commits intomainfrom
GAUD-9790/confirm-dialog-newline-fix

Conversation

@dlockhart
Copy link
Copy Markdown
Member

Once newlines in lang terms are properly handled by OSLO, the process of going through BSI and being injected into the LMS database turns \n (LF) into \r\n (CRLF).

Technically splitting on \n to create confirmation dialog paragraphs still works with \r\n, but handling both line endings feels cleaner.

@dlockhart dlockhart requested a review from a team as a code owner May 1, 2026 17:43
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-6897/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@dlockhart dlockhart merged commit 39d42b8 into main May 1, 2026
7 checks passed
@dlockhart dlockhart deleted the GAUD-9790/confirm-dialog-newline-fix branch May 1, 2026 20:24

#renderText() {
if (!this.text) return nothing;
const lines = this.text.split(/\r\n|\n/gi);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const lines = this.text.split(/\r\n|\n/gi);
const lines = this.text.split(/\r?\n/g);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll do a follow-up with this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@d2l-github-release-tokens
Copy link
Copy Markdown

🎉 This PR is included in version 3.240.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants