Skip to content

Process \n as line break in --output-template flag #537

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

Merged
merged 2 commits into from
Jul 23, 2021

Conversation

khos2ow
Copy link
Member

@khos2ow khos2ow commented Jul 23, 2021

Description of your changes

When passing --output-template as CLI flag, \n is not processed as
line break rather than literal strings, which caused a misleading error
of "value of '--output-template' should contain at least 3 lines".

Fixes #536

I have:

How has this code been tested

Added all the new test cases in config_test.go.

khos2ow added 2 commits July 23, 2021 12:21
When passing `--output-template` as CLI flag, `\n` is not processed as
line break rather than literal strings, which caused a misleading error
of "value of '--output-template' should contain at least 3 lines".

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
@khos2ow khos2ow merged commit 64d3cae into terraform-docs:master Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

output-template from CLI considers \n as literal and not line break
1 participant