Pass options to Builder::XmlMarkup#35
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
:builderwhich is directly passed toBuilder::XmlMarkupSo it's possible to pass options like
:indentand others. For examplewill produce
To make indentation work correctly with
BuilderI had to make changes in that gem, so this won't work unless jimweirich/builder#44 is merged