Index: trunk/phase3/js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php |
— | — | @@ -170,11 +170,13 @@ |
171 | 171 | $result .= $char . $newline . str_repeat( $tab, $tabcount ); |
172 | 172 | } |
173 | 173 | break; |
174 | | -/* FIXME: this will change "key" : "message:" to "key" : "messages : ". Not intended. |
175 | | - now "key" : "message" will become "key":"message:", but that's not too big of a problem. |
176 | | - case ':': |
177 | | - $result .= ' ' . $char . ' '; |
178 | | - break; */ |
| 174 | + case ':': |
| 175 | + if($inquote){ |
| 176 | + $result .= $char; |
| 177 | + }else{ |
| 178 | + $result .= ' ' . $char . ' '; |
| 179 | + } |
| 180 | + break; |
179 | 181 | case '"': |
180 | 182 | $inquote = !$inquote; |
181 | 183 | $result .= $char; |