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

Add method to TrimEnd FormattedMessage #5308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

metalgearsloth
Copy link
Contributor

Sometimes you may want to deliberately add a newline at the end so better to just give this control instead of implicitly do it.

Sometimes you may want to deliberately add a newline at the end so better to just give this control instead of implicitly do it.
Copy link
Member

@PJB3005 PJB3005 left a comment

Choose a reason for hiding this comment

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

Would it be important for this to clean up formatting nodes that become empty as the result of this transformation?

if (markup.StringValue == null)
break;

var value = markup.StringValue.Trim();
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this going to trim at the end of both sides of the last node?

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