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

inspec control.to_ruby to use newlines instead of \n #1705

Merged
merged 1 commit into from
Apr 25, 2017

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented Apr 25, 2017

I.e. instead of printing them as:

desc "hello\nworld"

it would instead do:

desc "hello
world"

Signed-off-by: Dominik Richter [email protected]

I.e. instead of printing them as:

```
desc "hello\nworld"
```

it would instead do:

```
desc "hello
world"
```

Signed-off-by: Dominik Richter <[email protected]>
@arlimus arlimus added Type: Enhancement Improves an existing feature in progress labels Apr 25, 2017
@arlimus arlimus changed the title inspec control.to_ruby to use newlines instead of \n WIP! inspec control.to_ruby to use newlines instead of \n Apr 25, 2017
@arlimus arlimus changed the title WIP! inspec control.to_ruby to use newlines instead of \n inspec control.to_ruby to use newlines instead of \n Apr 25, 2017
@arlimus
Copy link
Contributor Author

arlimus commented Apr 25, 2017

The next step will be to indent the description.
For that, however, I need to clean up a 2 year old bug... 😁

Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @arlimus This makes it so much nicer to read if the control text is generated!

@chris-rock chris-rock merged commit ea2711d into master Apr 25, 2017
@chris-rock chris-rock deleted the dr/newlines-in-inspec-objects branch April 25, 2017 09:20
@arlimus
Copy link
Contributor Author

arlimus commented Apr 26, 2017

No a lot prettier with: #1711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants