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

Handle newline inserted via Arcade expression #516

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

MikeTschudi
Copy link
Member

@MikeTschudi MikeTschudi commented Feb 5, 2024

The expression: "Line 1 test" + TextFormatting.NewLine + "Line 2 test" was creating the pattern "Line 1 test\nLine 2 test", which was "cleaned up" at the very end of label generation into "Line 1 test|Line 2 test".

What needs to be done is to convert the \n into | right after the Arcade processing, after which it will be handled like other newlines in the label's pattern. Newlines are symbolized by | in label patterns to simplify processing to remove blank lines since \n is a rather special symbol.

@MikeTschudi MikeTschudi requested a review from jmhauck February 5, 2024 23:44
@MikeTschudi MikeTschudi merged commit e3c125a into develop Feb 5, 2024
3 checks passed
@MikeTschudi MikeTschudi deleted the bug/catch-newline-inserted-by-arcade branch February 5, 2024 23:53
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