From d16cdf1808ef8ef7d73ba0439fb1c83025ec9097 Mon Sep 17 00:00:00 2001 From: Danny B Date: Wed, 15 Oct 2008 22:50:14 +0000 Subject: [PATCH] * added line-wraps to make the XHTML output easier legible --- includes/WatchlistEditor.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index f3e41da62a..9877844fbc 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -342,16 +342,16 @@ class WatchlistEditor { $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $self->getLocalUrl( 'action=edit' ) ) ); $form .= Xml::hidden( 'token', $wgUser->editToken( 'watchlistedit' ) ); - $form .= '
' . wfMsgHtml( 'watchlistedit-normal-legend' ) . ''; + $form .= "
\n" . wfMsgHtml( 'watchlistedit-normal-legend' ) . ""; $form .= wfMsgExt( 'watchlistedit-normal-explain', 'parse' ); foreach( $this->getWatchlistInfo( $user ) as $namespace => $pages ) { - $form .= '

' . $this->getNamespaceHeading( $namespace ) . '

'; - $form .= '
    '; + $form .= "

    " . $this->getNamespaceHeading( $namespace ) . "

    \n"; + $form .= "
      \n"; foreach( $pages as $dbkey => $redirect ) { $title = Title::makeTitleSafe( $namespace, $dbkey ); $form .= $this->buildRemoveLine( $title, $redirect, $wgUser->getSkin() ); } - $form .= '
    '; + $form .= "
\n"; } $form .= '

' . Xml::submitButton( wfMsg( 'watchlistedit-normal-submit' ) ) . '

'; $form .= '
'; @@ -391,9 +391,9 @@ class WatchlistEditor { if( $title->getNamespace() == NS_USER && !$title->isSubpage() ) { $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions', $title->getText() ), wfMsgHtml( 'contributions' ) ); } - return '
  • ' + return "
  • " . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) ) - . $link . ' (' . implode( ' | ', $tools ) . ')' . '
  • '; + . $link . " (" . implode( ' | ', $tools ) . ")" . "\n"; } /** -- 2.20.1