-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Allow to configure line endings and indentation #166
Conversation
Sounds good, but I do worry about one thing -- removing a public class is a backwards-compatiblity-breaking change, so anyone who is using it (either directly or by sub-classing) would get their code broken. Would it be possible to just leave a deprecated type, which could extend the new class? |
Added new API to mutate the indenter.
You're right, of course. I've restored the old API (I hope I didn't miss anything) plus extended the new API a bit. I'm also thinking about a way to allow to define a custom pretty printer in ObjectMapper. What do you think? |
@digulla Custom pretty printer can already be configured via |
Ok; I can merge this, just one last piece of process: we need a filled Contributor License Agreement (CLA): https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf (unless I have asked and gotten one -- I don't think I have, but just in case). A filled copy is needed just once for all contributions, but we need it for the first merge. |
Re: |
No, not at all. Perhaps your impression is due to But much of documentation does show direct usage via |
Allow to configure line endings and indentation
Merged, thanks again! |
Allow to configure line endings and indentation used in the DefaultPrettyPrinter plus test cases.