Skip to content

Collapse newlines in string literals:#127

Merged
burke merged 2 commits into
masterfrom
collapse-newlines
May 3, 2023
Merged

Collapse newlines in string literals:#127
burke merged 2 commits into
masterfrom
collapse-newlines

Conversation

@burke

@burke burke commented May 2, 2023

Copy link
Copy Markdown
Member

A common use-case is to want to paste in multiline certificates, etc.

This does a first pass on encrypt in order to first collapse multiline strings into valid JSON, before continuing with handling.

A common use-case is to want to paste in multiline certificates, etc.

This does a first pass on encrypt in order to first collapse multiline
strings into valid JSON, before continuing with handling.
@sambostock

Copy link
Copy Markdown

@antoniocheltenham, this looks like the feature you wanted, if you want to provide any feedback.

@burke
burke merged commit f814595 into master May 3, 2023
@burke
burke deleted the collapse-newlines branch May 3, 2023 13:42
@antoniocheltenham

Copy link
Copy Markdown

This is amazing - RIP cat filename.pem | tr '\r\n' '\#' | sed 's:#:\\n:g' 🚀

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.

4 participants