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 Encoder opt to emit arrays on multiple lines #203

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

pelletier
Copy link
Owner

A new Encoder option emits arrays with more than one line on multiple lines.
This is off by default and toggled with ArraysWithOneElementPerLine.

For example:

A = [1,2,3]

Becomes:

A = [
  1,
  2,
  3
]

Fixes #200

cc @sdboyer @carolynvs. The very long overdue feature. :)

A new Encoder option emits arrays with more than one line on multiple lines.
This is off by default and toggled with `ArraysWithOneElementPerLine`.

For example:

```
A = [1,2,3]
```

Becomes:

```
A = [
  1,
  2,
  3
]
```

Fixes #200
@pelletier pelletier force-pushed the pelletier/write-arrays-one-line-per-element branch from 4d7ce2c to c376ad2 Compare December 5, 2017 04:02
@pelletier pelletier merged commit b8b5e76 into master Dec 18, 2017
@pelletier pelletier deleted the pelletier/write-arrays-one-line-per-element branch December 18, 2017 13:57
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.

1 participant