<br/> isn't compatible with Netscape 4.x; use <br /> to avoid gratuitously breaking...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 31 May 2004 00:58:57 +0000 (00:58 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 31 May 2004 00:58:57 +0000 (00:58 +0000)
includes/Parser.php
includes/SpecialRecentchanges.php
includes/SpecialWhatlinkshere.php

index f0f9897..5b8dfb8 100644 (file)
@@ -110,8 +110,8 @@ class Parser
                                "/(.) (\\?|:|!|\\302\\273)/i"=>"\\1&nbsp;\\2", 
                                # french spaces, Guillemet-right
                                "/(\\302\\253) /i"=>"\\1&nbsp;", 
-                               "/<hr *>/i" => '<hr/>',
-                               "/<br *>/i" => '<br/>',
+                               "/<hr *>/i" => '<hr />',
+                               "/<br *>/i" => '<br />',
                                "/<center *>/i"=>'<div class="center">',
                                "/<\\/center *>/i" => '</div>',
                                # Clean up spare ampersands; note that we probably ought to be
@@ -584,7 +584,7 @@ class Parser
                $text = $this->removeHTMLtags( $text );
                $text = $this->replaceVariables( $text, $args );
 
-               $text = preg_replace( "/(^|\n)-----*/", "\\1<hr/>", $text );
+               $text = preg_replace( "/(^|\n)-----*/", "\\1<hr />", $text );
 
                $text = $this->doHeadings( $text );
                if($this->mOptions->getUseDynamicDates()) {
@@ -1119,7 +1119,7 @@ class Parser
                                                // paragraph
                                                if ( '' == trim($t) ) {
                                                        if ( $paragraphStack ) {
-                                                               $output .= $paragraphStack.'<br/>';
+                                                               $output .= $paragraphStack.'<br />';
                                                                $paragraphStack = false;
                                                                $this->mLastSection = 'p';
                                                        } else {
@@ -1885,7 +1885,7 @@ class Parser
                /*
                $pairs = array(
                        "/<br.+(clear|break)=[\"']?(all|both)[\"']?\\/?>/i" => '<br style="clear:both;"/>',
-                       "/<br *?>/i" => "<br/>",
+                       "/<br *?>/i" => "<br />",
                );
                $text = preg_replace(array_keys($pairs), array_values($pairs), $text);
                */
index 1276785..4470c76 100644 (file)
@@ -111,11 +111,11 @@ function wfSpecialRecentchanges( $par )
        } else {
                $note = wfMsg( "rcnote", $wgLang->formatNum( $limit ), $wgLang->formatNum( $days ) );
        }
-       $wgOut->addHTML( "\n<hr/>\n{$note}\n<br/>" );
+       $wgOut->addHTML( "\n<hr />\n{$note}\n<br />" );
 
        $note = rcDayLimitLinks( $days, $limit, "Recentchanges", $hideparams, false, $minorLink, $botLink, $liuLink );
 
-       $note .= "<br/>\n" . wfMsg( "rclistfrom",
+       $note .= "<br />\n" . wfMsg( "rclistfrom",
          $sk->makeKnownLink( $wgLang->specialPage( "Recentchanges" ),
          $wgLang->timeanddate( $now, true ), "{$hideparams}&from=$now" ) );
 
index 900f9e7..d8770bb 100644 (file)
@@ -27,7 +27,7 @@ function wfSpecialWhatlinkshere($par = NULL)
        $sk = $wgUser->getSkin();
        $isredir = " (" . wfMsg( "isredirect" ) . ")\n";
 
-       $wgOut->addHTML("&lt; ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."<br/>\n");
+       $wgOut->addHTML("&lt; ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."<br />\n");
        
        if ( 0 == $id ) {
                $sql = "SELECT cur_id,cur_namespace,cur_title,cur_is_redirect FROM brokenlinks,cur WHERE bl_to='" .