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

Remove base64 encoding for text/plain mimetype #177

Merged
merged 6 commits into from
May 26, 2022

Conversation

BaCaRoZzo
Copy link
Collaborator

@BaCaRoZzo BaCaRoZzo commented May 12, 2022

Fixes #46

The actual fix is in 66de549, the rest are just improvements and minor fixes which, I hope, are welcome as well. 🙂

Regarding the fix itself, it simply removes the encoding for text/plain but also reworks a bit the template. Basically step.text and step.json were overlapping causing the two to end up in the same div. I don't think that was wanted as we have two separated divs for json and text. Hence, I've made sure to correctly split them.

orderCxl has been added to the tests and it is indeed processed as expected now.

Also "text" and "json" entries are split so that the overlap doesn't bring to either of the two to be hidden. A plain text string is added to the tests and documentation is updated to make sure it is explicitly stated that plain text is NOT encoded any more.
- "var" is substituted by "const"
- indentation is made consistent (tabs vs spaces)
- doc typos fixes
@BaCaRoZzo
Copy link
Collaborator Author

@wswebcreation I think we should apply the same treatment to text/html, i.e. remove the base64 encoding also there. Since I'm not sure what's the feeling about that I left that for the PR discussion. 😄

Copy link
Collaborator

@wswebcreation wswebcreation left a comment

Choose a reason for hiding this comment

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

Wow @BaCaRoZzo

Thanks for all the fixes!

Regarding this

@wswebcreation I think we should apply the same treatment to text/html, i.e. remove the base64 encoding also there. Since I'm not sure what's the feeling about that I left that for the PR discussion. 😄

Yes, please, can you also fix it there?

@BaCaRoZzo
Copy link
Collaborator Author

@wswebcreation done as requested. Also dropped the library in a separate commit since it went unused.

@wswebcreation
Copy link
Collaborator

Thanks @BaCaRoZzo !

@wswebcreation wswebcreation merged commit 2f583a5 into WasiqB:main May 26, 2022
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.

Invalid characters being reported
2 participants