-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
XMLBuilder: introduce initial indentation level option #566
base: master
Are you sure you want to change the base?
XMLBuilder: introduce initial indentation level option #566
Conversation
introduces new XMLBuilder option: initialIndentationLevel, allows to build xml starting from the provided indentaion level. default value is 0, so that previous default behaviour is unchanged
These changes seems fine to me. I've to think more on option name, if something else be more concise. |
@moki I'm just wondering if we should name it as "margin". It might not be a good suggestion so I'm thinking more like in this way. |
i guess margin describes well what one will actually see in the end result. but doesn't fit well regarding terminology... What do you think about |
|
@amitguptagwl sorry for pinging you, but do you have any updates on the option naming? |
@moki Sorry I was on a long vacation and now sick. I'll check it back as soon as I feel little good. |
its all good, get well soon! |
hey @amitguptagwl, have you had time to revisit this? |
Hey @moki , I've completed the major development of v5 of this library few weeks back. Hence, I'm avoiding any change in the current version of library until or unless some bug is reported. However, the new version has some performance issue. So I'll merge this PR if v5 is discarded or I'll inform you once it is released. For the new version, you can check my post under discussion. |
alright keep me posted, also do you plan to release the draft of the v5 as a separate branch. i mean i would like to "rebase" this PR onto it. in quotes - because prolly i will have to re-write my pr for it. |
Hi @moki, thought v5 is supposed to support many awaited features, it's speed is downgraded by 4-5 times. I have few ideas of improving it by shifting to old js style. However, not getting time to work due to job shift. As soon as I fix the performance issue in new version, I'll cut the branch and will let you know. Thanks |
Purpose / Goal
Introduce new option
initialIndentationLevel
and initializebuilder
with it instead of the literal value0
.The option
initialIndentationLevel
is going to default to0
so that default behaviour will be preserved.Yet will allow to start generating xml document starting from the specified indentation level.
I explain the reasoning behind introducing this feature extensively in the #565
Closes: #565
Type