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

Readability suggestion #377

Closed
davidlange6 opened this issue Feb 16, 2022 · 4 comments · Fixed by #454
Closed

Readability suggestion #377

davidlange6 opened this issue Feb 16, 2022 · 4 comments · Fixed by #454

Comments

@davidlange6
Copy link
Collaborator

printf("The code is: %s\n", getCode());

would be more readable with another line break

printf("The code is: \n%s\n", getCode());
@davidlange6
Copy link
Collaborator Author

(or maybe even just drop The code is and let the user add that if they want)

@vgvassilev
Copy link
Owner

The getCode interface seems to be doing what you have in mind. Is it missing something?

@davidlange6
Copy link
Collaborator Author

davidlange6 commented Feb 16, 2022 via email

@vgvassilev
Copy link
Owner

@Nirhar, can you look into this issue, too?

Nirhar added a commit to Nirhar/clad that referenced this issue May 25, 2022
Previously the dump function printed the code immediately after "The code is"
which made the actual code less readable. Now a '\n' character has been added
after "The code is" so that the actual code starts from a new line, making it more
readable.

This patch fixes vgvassilev#377
vgvassilev pushed a commit that referenced this issue May 25, 2022
Previously the dump function printed the code immediately after "The code is"
which made the actual code less readable. Now a '\n' character has been added
after "The code is" so that the actual code starts from a new line, making it more
readable.

This patch fixes #377
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 a pull request may close this issue.

2 participants