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 indentation setting for Encoder #386

Merged
merged 1 commit into from
May 4, 2020
Merged

Add indentation setting for Encoder #386

merged 1 commit into from
May 4, 2020

Conversation

x-hgg-x
Copy link
Contributor

@x-hgg-x x-hgg-x commented May 1, 2020

This PR adds the possibility to set indentation when marshaling with Encoder.

Fixes #371.

@codecov
Copy link

codecov bot commented May 1, 2020

Codecov Report

Merging #386 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #386      +/-   ##
==========================================
+ Coverage   95.09%   95.11%   +0.01%     
==========================================
  Files          10       10              
  Lines        2202     2209       +7     
==========================================
+ Hits         2094     2101       +7     
  Misses         68       68              
  Partials       40       40              
Impacted Files Coverage Δ
marshal.go 94.49% <100.00%> (+0.06%) ⬆️
tomltree_write.go 95.51% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b8e33f...fb7d1ba. Read the comment docs.

@pelletier
Copy link
Owner

Nice! Thank you for adding this.

@pelletier pelletier merged commit 82a6a19 into pelletier:master May 4, 2020
@x-hgg-x x-hgg-x deleted the encoder-indentation branch May 4, 2020 18:53
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.

Add possibility to change indentation in Encoder
2 participants