r60367 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60366‎ | r60367 | r60368 >
Date:19:33, 24 December 2009
Author:catrope
Status:ok
Tags:
Comment:
API: (bug 21945) Add chomp control in YAML
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatYaml_spyc.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiFormatYaml_spyc.php
@@ -203,7 +203,7 @@
204204 */
205205 private function _doLiteralBlock($value,$indent) {
206206 $exploded = explode("\n",$value);
207 - $newValue = '|';
 207+ $newValue = '|-';
208208 $indent += $this->_dumpIndent;
209209 $spaces = str_repeat(' ',$indent);
210210 foreach ($exploded as $line) {
@@ -227,7 +227,7 @@
228228 $indent += $this->_dumpIndent;
229229 $indent = str_repeat(' ',$indent);
230230 $wrapped = wordwrap($value,$this->_dumpWordWrap,"\n$indent");
231 - $value = ">\n".$indent.$wrapped;
 231+ $value = ">-\n".$indent.$wrapped;
232232 }
233233 return $value;
234234 }
Index: trunk/phase3/RELEASE-NOTES
@@ -757,6 +757,7 @@
758758 * (bug 21817) list=usercontribs returns empty result for empty ucuser
759759 * (bug 21441) meta=userinfo&uiprop=options no longer returns default options
760760 for logged-in users under certain circumstances
 761+* (bug 21945) Add chomp control in YAML
761762
762763 === Languages updated in 1.16 ===
763764

Status & tagging log