"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "includes/tidy/RemexCompatFormatter.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

RemexCompatFormatter.php  (mediawiki-1.31.1):RemexCompatFormatter.php  (mediawiki-1.32.0)
skipping to change at line 21 skipping to change at line 21
*/ */
class RemexCompatFormatter extends HtmlFormatter { class RemexCompatFormatter extends HtmlFormatter {
private static $markedEmptyElements = [ private static $markedEmptyElements = [
'li' => true, 'li' => true,
'p' => true, 'p' => true,
'tr' => true, 'tr' => true,
]; ];
public function __construct( $options = [] ) { public function __construct( $options = [] ) {
parent::__construct( $options ); parent::__construct( $options );
$this->attributeEscapes["\xc2\xa0"] = ' '; $this->attributeEscapes["\u{00A0}"] = ' ';
unset( $this->attributeEscapes["&"] ); unset( $this->attributeEscapes["&"] );
$this->textEscapes["\xc2\xa0"] = ' '; $this->textEscapes["\u{00A0}"] = ' ';
unset( $this->textEscapes["&"] ); unset( $this->textEscapes["&"] );
} }
public function startDocument( $fragmentNamespace, $fragmentName ) { public function startDocument( $fragmentNamespace, $fragmentName ) {
return ''; return '';
} }
public function element( SerializerNode $parent, SerializerNode $node, $c ontents ) { public function element( SerializerNode $parent, SerializerNode $node, $c ontents ) {
$data = $node->snData; $data = $node->snData;
if ( $data && $data->isPWrapper ) { if ( $data && $data->isPWrapper ) {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)