aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-09-10 16:20:31 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-09-10 16:20:31 -0400
commitbccca780eef904002512a1a0b5ce617bcb63507b (patch)
tree65d58a8b2af7dc210bc98927e2a112f0ac7c9372 /src/backend/utils/adt/ruleutils.c
parented055d249df577ab40470f9dc1a30ab18ffdfff4 (diff)
downloadpostgresql-bccca780eef904002512a1a0b5ce617bcb63507b.tar.gz
postgresql-bccca780eef904002512a1a0b5ce617bcb63507b.zip
Fix some whitespace issues in XMLSERIALIZE(... INDENT).
We must drop whitespace while parsing the input, else libxml2 will include "blank" nodes that interfere with the desired indentation behavior. The end result is that we didn't indent nodes separated by whitespace. Also, it seems that libxml2 may add a trailing newline when working in DOCUMENT mode. This is semantically insignificant, so strip it. This is in the gray area between being a bug fix and a definition change. However, the INDENT option is still pretty new (since v16), so I think we can get away with changing this in stable branches. Hence, back-patch to v16. Jim Jones Discussion: https://postgr.es/m/872865a8-548b-48e1-bfcd-4e38e672c1e4@uni-muenster.de
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions