Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -1138,7 +1138,7 @@ |
1139 | 1139 | // cycle through the other components |
1140 | 1140 | for ( $i = 2; $i < count( $tag_components ); $i++ ) { |
1141 | 1141 | $component = $tag_components[$i]; |
1142 | | - $sub_components = explode( '=', $component ); |
| 1142 | + $sub_components = array_map( 'trim', explode( '=', $component ) ); |
1143 | 1143 | if ( count( $sub_components ) == 1 ) { |
1144 | 1144 | if ( $sub_components[0] == 'edittools' ) { |
1145 | 1145 | $free_text_components[] = 'edittools'; |
— | — | @@ -1187,7 +1187,7 @@ |
1188 | 1188 | } elseif ( $tag_title == 'info' ) { |
1189 | 1189 | // TODO: Generate an error message if this is included more than once |
1190 | 1190 | foreach ( array_slice( $tag_components, 1 ) as $component ) { |
1191 | | - $sub_components = explode( '=', $component, 2 ); |
| 1191 | + $sub_components = array_map( 'trim', explode( '=', $component, 2 ) ); |
1192 | 1192 | $tag = $sub_components[0]; |
1193 | 1193 | if ( $tag == 'create title' || $tag == 'add title' ) { |
1194 | 1194 | // Handle this only if |