Index: trunk/extensions/Spark/Spark.class.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | |
35 | 35 | public function __construct( array $args, $contents ) { |
36 | 36 | $this->parameters = $this->getSparkParameters( $args ); |
37 | | - $this->contents = $contents; |
| 37 | + $this->contents = $contents;//var_dump($this);exit; |
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
— | — | @@ -55,6 +55,8 @@ |
56 | 56 | ( is_null( $this->contents ) ? '' : htmlspecialchars( $this->contents ) ) . |
57 | 57 | '</div>'; |
58 | 58 | |
| 59 | + $html = preg_replace( '/[ \t]+(\?)/', '$1', $html ); |
| 60 | + |
59 | 61 | return array( $parser->insertStripItem( $html, $parser->mStripState ), 'noparse' => true, 'isHTML' => true ); |
60 | 62 | } |
61 | 63 | else { |