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 issue #52 #62

Merged
merged 2 commits into from
May 2, 2019
Merged

Fix for issue #52 #62

merged 2 commits into from
May 2, 2019

Conversation

burgerbecky
Copy link
Contributor

When running Doxypypy on a Windows machine, getLines() creates an array of strings separated by '\r\n' while technically correct, when this list is passed to the print() function, it converts the '\n' to a '\r\r\n' sequence causing issues with Doxygen on Windows and text editors in general. By changing the value passed to join() from linesep to '\n', print() properly converts the line feeds to on all platforms.

When running Doxypypy on a Windows machine, getLines() creates an array of strings separated by '\r\n' while technically correct, when this list is passed to the print() function, is converts the '\n' to a '\r\r\n' sequence causing issues with Doxygen on Windows and text editors in general. By changing the value passed to join() from linesep to '\n', print() properly converts the line feeds to on all platforms.
Found a better solution which allows all unit tests to pass.
@burgerbecky
Copy link
Contributor Author

Changed the code so print processes each line separately. This was tested with the unit tests, Windows, Mac and Linux systems.

@Feneric Feneric merged commit 2a89e6a into Feneric:master May 2, 2019
@Feneric
Copy link
Owner

Feneric commented May 2, 2019

Thanks for the fix (and for running it through the tests to ensure nothing got broken).

@burgerbecky
Copy link
Contributor Author

Any time!

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.

None yet

2 participants