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

Trim the newline-chars instead of removing of 2 chars #2015

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

MadMax411
Copy link

Removing 2 chars (CR/LF) is under Windows okay, but on Linux only one char (LF) has to be deleted. Otherwise a char of the content is removed. So the fix is to use the QString method trimmed() to remove the CR/LF or LF chars.

@gabime gabime merged commit 7bb5354 into gabime:v1.x Jul 27, 2021
@gabime
Copy link
Owner

gabime commented Jul 27, 2021

Thanks @MadMax411

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