Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewDiff.php |
— | — | @@ -296,8 +296,8 @@ |
297 | 297 | } |
298 | 298 | |
299 | 299 | if ( $format == 'text' ) { |
300 | | - $old = htmlspecialchars( $old ); |
301 | | - $new = htmlspecialchars( $new ); |
| 300 | + $old = nl2br( htmlspecialchars( $old ) ); |
| 301 | + $new = nl2br( htmlspecialchars( $new ) ); |
302 | 302 | } |
303 | 303 | |
304 | 304 | $row .= Xml::tags( 'td', array( 'class' => $oldClass ), $old ); |
— | — | @@ -315,8 +315,8 @@ |
316 | 316 | } |
317 | 317 | |
318 | 318 | if ( $old == $new ) { |
319 | | - $old = implode( "<br />\n", $old ); |
320 | | - $new = implode( "<br />\n", $new ); |
| 319 | + $old = implode( "\n", $old ); |
| 320 | + $new = implode( "\n", $new ); |
321 | 321 | return $this->getSimpleRow( $msg, $old, $new, 'text' ); |
322 | 322 | } |
323 | 323 | |