You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default Export-FormatData to pretty-printing or add an option #6681
To that end, outputting pretty-printed XML would be much more convenient - currently, a single-line XML string is output.
If changing the existing behavior is not a backward-compatibility concern:
Simply output pretty-printed XML by default (it will consume more space, however)
Otherwise:
Introduce a switch such as -Format (or, to follow the - inverted - logic of ConvertTo-Json, perhaps -Uncompress?) that results in pretty-printed output.
Michael Klement (@mklement0) This sounds like a good thing to do. (I would have thought we were already doing it actually.) Anyway, as long as the result is valid XML, simply pretty-printing it should fall within acceptable changes.
Reacted by Michael Klement and Rain Sallow (/u/ta11ow)
Activity
BrucePay commentedon Apr 20, 2018
Michael Klement (@mklement0) This sounds like a good thing to do. (I would have thought we were already doing it actually.) Anyway, as long as the result is valid XML, simply pretty-printing it should fall within acceptable changes.
SteveL-MSFT commentedon Apr 20, 2018
Pretty printed xml is well-formed and valid, so there's no functional impact. Seems like a good idea and should be a small change.