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

Fix for incorrect line terminators in partials on Windows #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yasniy
Copy link

@yasniy yasniy commented Jan 27, 2020

When the partial file contains Windows-slyle line terminators ("\r\n") it will not be converted into normal C-slyle "\n" for internal use. As a result the rendered file saved as text will have a broked line terminator "\r\r\n".

@robertknight
Copy link
Owner

robertknight commented Jan 28, 2020

Hello,

The change looks fine but can you add a test to check for the issue you fixed? There is one Qt 5 test that is failing but it looks like that is unrelated to the change you made.

@yasniy
Copy link
Author

yasniy commented Jan 28, 2020

Test fails due to the way Qt 5.5 used in test handles double to string conversion. This behaviour was changed in Qt 5.7: "Added support for converting a floating point to its shortest and exact string form, without having to pre-calculate the number of digits." (What's New in Qt 5.7)

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