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 an option to remove new line characters from body in cURL code snippet #540

Closed
Pawloland opened this issue Oct 24, 2021 · 0 comments · Fixed by #774 · May be fixed by #541
Closed

Add an option to remove new line characters from body in cURL code snippet #540

Pawloland opened this issue Oct 24, 2021 · 0 comments · Fixed by #774 · May be fixed by #541
Assignees
Labels
codegen enhancement New feature or request

Comments

@Pawloland
Copy link

Pawloland commented Oct 24, 2021

Is your feature request related to a problem? Please describe.
When generating cURL code snippet, even though the "Generate multiline snippet" option is disabled, the code snipped can became multiline when raw body ex. JSON contains new line character(s). It's especially annoying when copy-pasting in old Windows terminals that don't handle it properly. By adding this option we could have neatly formatted JSON in body editor area and one line cURL code snippet.

Describe the solution you'd like
A separate option in "code generation settings" to strip any new line characters from body (disabled by default). When enabled it would replace any "\n" with "".

Additional context
PR #541

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment