postman-code-generators
postman-code-generators copied to clipboard
Add an option to remove new line characters from body in cURL code snippet
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