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

Add interface allowing the user to specify line endings #15

Merged
merged 1 commit into from Jul 2, 2019

Conversation

sarnautov
Copy link
Contributor

When encoding data into PEM, the library uses \r\n line endings. This
commit provides the user the ability to change this behavior and use
\n instead by introducing encode_config and encode_many_config
functions, which take an additional argument providing configuration for
the encoding process. For backwards compatibility, encode and
encode_many will use CRLF by default.

When encoding data into PEM, the library uses `\r\n` line endings. This
commit provides the user the ability to change this behavior and use
`\n` instead by introducing `encode_config` and `encode_many_config`
functions, which take an additional argument providing configuration for
the encoding process. For backwards compatibility, `encode` and
`encode_many` will use CRLF by default.
@jcreekmore jcreekmore merged commit 17e48ba into jcreekmore:master Jul 2, 2019
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