Index: trunk/phase3/includes/api/ApiFormatYaml_spyc.php |
— | — | @@ -424,10 +424,16 @@ |
425 | 425 | |
426 | 426 | if (is_int($key)) { |
427 | 427 | // It's a sequence |
428 | | - $string = $spaces.'- '.$value."\n"; |
| 428 | + if ($value) |
| 429 | + $string = $spaces.'- '.$value."\n"; |
| 430 | + else |
| 431 | + $string = $spaces . "-\n"; |
429 | 432 | } else { |
430 | | - // It's mapped |
431 | | - $string = $spaces.$key.': '.$value."\n"; |
| 433 | + // It's mapped |
| 434 | + if ($value) |
| 435 | + $string = $spaces.$key.': '.$value."\n"; |
| 436 | + else |
| 437 | + $string = $spaces . $key . ":\n"; |
432 | 438 | } |
433 | 439 | return $string; |
434 | 440 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -168,6 +168,7 @@ |
169 | 169 | * Added help text message that specifies whether a module is POST-only |
170 | 170 | * Added createonly parameter to action=edit |
171 | 171 | * Replaced $wgAPIUCUserPrefixMinLength by the more generic $wgAPIMaxDBRows |
| 172 | +* (bug 11719) Remove trailing blanks in YAML output. |
172 | 173 | |
173 | 174 | === Languages updated in 1.13 === |
174 | 175 | |