Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php |
— | — | @@ -736,7 +736,7 @@ |
737 | 737 | } |
738 | 738 | |
739 | 739 | $currentValue = array_key_exists( $param->getName(), $paramValues ) ? $paramValues[$param->getName()] : false; |
740 | | - |
| 740 | + |
741 | 741 | $optionsHtml[] = |
742 | 742 | Html::rawElement( |
743 | 743 | 'div', |
Index: trunk/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php |
— | — | @@ -31,6 +31,8 @@ |
32 | 32 | public function doManipulation( &$value, Parameter $parameter, array &$parameters ) { |
33 | 33 | global $smwgResultFormats; |
34 | 34 | |
| 35 | + $value = trim( $value ); |
| 36 | + |
35 | 37 | if ( !array_key_exists( $value, $smwgResultFormats ) ) { |
36 | 38 | $isAlias = self::resolveFormatAliases( $value ); |
37 | 39 | |