r50041 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50040‎ | r50041 | r50042 >
Date:13:12, 29 April 2009
Author:catrope
Status:ok
Tags:
Comment:
API: (bug 18617) Add xml:space="preserve" attribute to relevant tags in XML output so overzealous XML parsers will leave whitespace in e.g. revision content alone
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatXml.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiFormatXml.php
@@ -89,6 +89,11 @@
9090 if ($this->mDoubleQuote)
9191 $subElemContent = $this->doubleQuote($subElemContent);
9292 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';
9398 } else {
9499 $subElemContent = null;
95100 }
Index: trunk/phase3/RELEASE-NOTES
@@ -435,6 +435,7 @@
436436 * (bug 18601) generator=backlinks returns invalid continue parameter
437437 * (bug 18597) Internal error with empty generator= parameter
438438 * (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
439440
440441 === Languages updated in 1.15 ===
441442

Follow-up revisions

RevisionCommit summaryAuthorDate
r50217API backports:...tstarling13:12, 5 May 2009

Status & tagging log