diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 3548da9581..14c9ab9fdf 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1076,7 +1076,7 @@ class Parser { $attributes = $this->mStripState->unstripBoth( $matches[2] ); $attributes = Sanitizer::fixTagAttributes( $attributes, 'table' ); - $outLine = str_repeat( '
', $indent_level ) . ""; + $outLine = str_repeat( '
', $indent_level ) . "\n"; array_push( $td_history, false ); array_push( $last_tag_history, '' ); array_push( $tr_history, false ); @@ -1088,7 +1088,7 @@ class Parser { continue; } elseif ( $first_two === '|}' ) { # We are ending a table - $line = '' . substr( $line, 2 ); + $line = "\n" . substr( $line, 2 ); $last_tag = array_pop( $last_tag_history ); if ( !array_pop( $has_opened_tr ) ) { @@ -1096,7 +1096,7 @@ class Parser { } if ( array_pop( $tr_history ) ) { - $line = "{$line}"; + $line = "\n{$line}"; } if ( array_pop( $td_history ) ) { @@ -1120,11 +1120,11 @@ class Parser { array_push( $has_opened_tr, true ); if ( array_pop( $tr_history ) ) { - $line = ''; + $line = "\n"; } if ( array_pop( $td_history ) ) { - $line = "{$line}"; + $line = "\n{$line}"; } $outLine = $line; @@ -1207,7 +1207,7 @@ class Parser { array_push( $td_history, true ); } } - $out .= $outLine . "\n"; + $out .= $outLine; } # Closing open td, tr && table diff --git a/resources/src/jquery/jquery.makeCollapsible.css b/resources/src/jquery/jquery.makeCollapsible.css index 2e5efbac8b..b6322ba374 100644 --- a/resources/src/jquery/jquery.makeCollapsible.css +++ b/resources/src/jquery/jquery.makeCollapsible.css @@ -5,6 +5,7 @@ -webkit-user-select: none; -ms-user-select: none; user-select: none; + padding-left: 0.2em; } /* Align the toggle based on the direction of the content language */ /* @noflip */