Index: trunk/phase3/includes/api/ApiFormatXml.php |
— | — | @@ -89,6 +89,11 @@ |
90 | 90 | if ($this->mDoubleQuote) |
91 | 91 | $subElemContent = $this->doubleQuote($subElemContent); |
92 | 92 | unset ($elemValue['*']); |
| 93 | + |
| 94 | + // Add xml:space="preserve" to the |
| 95 | + // element so XML parsers will leave |
| 96 | + // whitespace in the content alone |
| 97 | + $elemValue['xml:space'] = 'preserve'; |
93 | 98 | } else { |
94 | 99 | $subElemContent = null; |
95 | 100 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -435,6 +435,7 @@ |
436 | 436 | * (bug 18601) generator=backlinks returns invalid continue parameter |
437 | 437 | * (bug 18597) Internal error with empty generator= parameter |
438 | 438 | * (bug 16422) Don't display help for format=jsonfm unless specifically requested |
| 439 | +* (bug 18617) Add xml:space="preserve" attribute to relevant tags in XML output |
439 | 440 | |
440 | 441 | === Languages updated in 1.15 === |
441 | 442 | |