forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbccca78
committed
Fix some whitespace issues in XMLSERIALIZE(... INDENT).
We must drop whitespace while parsing the input, else libxml2will include "blank" nodes that interfere with the desiredindentation behavior. The end result is that we didn't indentnodes separated by whitespace.Also, it seems that libxml2 may add a trailing newline when workingin DOCUMENT mode. This is semantically insignificant, so strip it.This is in the gray area between being a bug fix and a definitionchange. 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 JonesDiscussion:https://postgr.es/m/872865a8-548b-48e1-bfcd-4e38e672c1e4@uni-muenster.de1 parented055d2 commitbccca78
5 files changed
+84
-23
lines changedLines changed: 24 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
677 | 677 |
| |
678 | 678 |
| |
679 | 679 |
| |
680 |
| - | |
681 |
| - | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
682 | 688 |
| |
683 | 689 |
| |
684 | 690 |
| |
| |||
802 | 808 |
| |
803 | 809 |
| |
804 | 810 |
| |
805 |
| - | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
806 | 827 |
| |
807 | 828 |
| |
808 | 829 |
| |
|
Lines changed: 23 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
488 |
| - | |
489 |
| - | |
| 488 | + | |
490 | 489 |
| |
491 | 490 |
| |
492 | 491 |
| |
| |||
546 | 545 |
| |
547 | 546 |
| |
548 | 547 |
| |
549 |
| - | |
550 |
| - | |
| 548 | + | |
551 | 549 |
| |
552 | 550 |
| |
553 | 551 |
| |
| |||
601 | 599 |
| |
602 | 600 |
| |
603 | 601 |
| |
604 |
| - | |
605 |
| - | |
| 602 | + | |
606 | 603 |
| |
607 | 604 |
| |
608 | 605 |
| |
| |||
620 | 617 |
| |
621 | 618 |
| |
622 | 619 |
| |
623 |
| - | |
624 |
| - | |
| 620 | + | |
625 | 621 |
| |
626 | 622 |
| |
627 | 623 |
| |
| |||
638 | 634 |
| |
639 | 635 |
| |
640 | 636 |
| |
641 |
| - | |
642 |
| - | |
| 637 | + | |
643 | 638 |
| |
644 | 639 |
| |
645 | 640 |
| |
| |||
663 | 658 |
| |
664 | 659 |
| |
665 | 660 |
| |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
666 | 679 |
| |
667 | 680 |
| |
668 | 681 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
446 | 457 |
| |
447 | 458 |
| |
448 | 459 |
| |
|
Lines changed: 23 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
471 | 471 |
| |
472 | 472 |
| |
473 | 473 |
| |
474 |
| - | |
475 |
| - | |
| 474 | + | |
476 | 475 |
| |
477 | 476 |
| |
478 | 477 |
| |
| |||
532 | 531 |
| |
533 | 532 |
| |
534 | 533 |
| |
535 |
| - | |
536 |
| - | |
| 534 | + | |
537 | 535 |
| |
538 | 536 |
| |
539 | 537 |
| |
| |||
587 | 585 |
| |
588 | 586 |
| |
589 | 587 |
| |
590 |
| - | |
591 |
| - | |
| 588 | + | |
592 | 589 |
| |
593 | 590 |
| |
594 | 591 |
| |
| |||
606 | 603 |
| |
607 | 604 |
| |
608 | 605 |
| |
609 |
| - | |
610 |
| - | |
| 606 | + | |
611 | 607 |
| |
612 | 608 |
| |
613 | 609 |
| |
| |||
624 | 620 |
| |
625 | 621 |
| |
626 | 622 |
| |
627 |
| - | |
628 |
| - | |
| 623 | + | |
629 | 624 |
| |
630 | 625 |
| |
631 | 626 |
| |
| |||
649 | 644 |
| |
650 | 645 |
| |
651 | 646 |
| |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
652 | 665 |
| |
653 | 666 |
| |
654 | 667 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| 171 | + | |
| 172 | + | |
| 173 | + | |
171 | 174 |
| |
172 | 175 |
| |
173 | 176 |
| |
|
0 commit comments
Comments
(0)