* use diffchange class alone for backwards compatibility with old renderings and diff plugins
* set text-decoration: none in diffs in RSS/Atom feeds
* fix bad diff regex in UTF-8 RandomTest script
'diff-addedline' => 'background: #cfc; font-size: smaller;',
'diff-deletedline' => 'background: #ffa; font-size: smaller;',
'diff-context' => 'background: #eee; font-size: smaller;',
- 'diffchange' => 'color: red; font-weight: bold;',
+ 'diffchange' => 'color: red; font-weight: bold; text-decoration: none;',
);
foreach( $styles as $class => $style ) {
$formatter = new TableDiffFormatter();
$funky = $formatter->format( $diffs );
$matches = array();
- preg_match_all( '/<(?:ins|del) class="diffchange">(.*?)<\/span>/', $funky, $matches );
+ preg_match_all( '/<(?:ins|del) class="diffchange">(.*?)<\/(?:ins|del)>/', $funky, $matches );
foreach( $matches[1] as $bit ) {
$hex = bin2hex( $bit );
echo "\t$hex\n";
background:#eeeeee;
font-size: smaller;
}
-ins.diffchange { color: red; text-decoration: none; }
-del.diffchange { color: red; text-decoration: none; }
+.diffchange { color: red; text-decoration: none; }
a.external { color: #3366bb; }
background:#eeeeee;
font-size: 94%;
}
-ins.diffchange {
- color: red;
- font-weight: bold;
- text-decoration: none;
-}
-del.diffchange {
+.diffchange {
color: red;
font-weight: bold;
text-decoration: none;
background:#eeeeee;
font-size: smaller;
}
-ins.diffchange {
- color: silver;
- font-weight: bold;
- text-decoration: underline;
-}
-del.diffchange {
+.diffchange {
color: silver;
font-weight: bold;
text-decoration: underline;
background: #eee;
font-size: smaller;
}
-span.diffchange {
+.diffchange {
color: red;
font-weight: bold;
}
background: #eee;
font-size: smaller;
}
-ins.diffchange {
- color: red;
- font-weight: bold;
- text-decoration: none;
-}
-del.diffchange {
+.diffchange {
color: red;
font-weight: bold;
text-decoration: none;
background-color: #f8ffaa;
}
-ins.diffchange { background-color: #FFCDF3; text-decoration: none; }
-del.diffchange { background-color: #FFCDF3; text-decoration: none; }
+.diffchange { background-color: #FFCDF3; text-decoration: none; }
.autocomment { color: grey; }
#pagehistory span.user {
margin-left: 1.4em;