-
Notifications
You must be signed in to change notification settings - Fork 58
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
Pass options to Builder::XmlMarkup
#35
base: main
Are you sure you want to change the base?
Conversation
I'm not sure we actually want to do this. What problem were you actually trying to address @davispuh ? Most consumers of the XML gyoku produces shouldn't care how the xml is indented. If the intention was to change this for pretty printing, then I agree we want to do something to make this work better, but a better approach might be to introduce a Also, terribly sorry no one has responded to this issue for two months. That's a long time to leave a PR hanging. |
Okay, I thought about this some more, and it makes a lot more sense to me. Let's get this merged in once jimweirich/builder#44 is merged. |
+1 for the ability to add Builder options such as indenting for pretty output (Perhaps also on a global level via class method config?). Could you please push a version with this feature to rubygems ;) |
Sure! I'll see about pushing a new version to rubygems later today. Sent From A Very Small Keyboard
|
Did you? |
@kristianmandrup Oh, sorry -- I just noticed that the PR to the builder gem wasn't merged in yet. |
That pull request doesn't seem to be going anywhere fast. Is it time to consider the alternative in the mean time? |
This PR adds option
:builder
which is directly passed toBuilder::XmlMarkup
So it's possible to pass options like
:indent
and others. For examplewill produce
To make indentation work correctly with
Builder
I had to make changes in that gem, so this won't work unless jimweirich/builder#44 is merged