Index: Preprocessor_Hash.php =================================================================== --- Preprocessor_Hash.php (Revision 94481) +++ Preprocessor_Hash.php (Arbeitskopie) @@ -498,7 +498,7 @@ 'open' => $curChar, 'close' => $rule['end'], 'count' => $count, - 'lineStart' => ($i == 0 || $text[$i-1] == "\n"), + 'lineStart' => ($i > 0 && $text[$i-1] == "\n"), ); $stack->push( $piece ); Index: Parser.php =================================================================== --- Parser.php (Revision 94706) +++ Parser.php (Arbeitskopie) @@ -851,8 +851,11 @@ # empty line, go to next line, # but only append \n if outside of table - if ( $line === '') { - $output .= $outLine . "\n"; + if ( $line === '' ) { + $out .= $outLine; + if ( !isset( $tables[0] ) ) { + $out .= "\n"; + } continue; } $firstChars = $line[0]; Index: Preprocessor_DOM.php =================================================================== --- Preprocessor_DOM.php (Revision 94481) +++ Preprocessor_DOM.php (Arbeitskopie) @@ -542,7 +542,7 @@ 'open' => $curChar, 'close' => $rule['end'], 'count' => $count, - 'lineStart' => ($i == 0 || $text[$i-1] == "\n"), + 'lineStart' => ($i > 0 && $text[$i-1] == "\n") ); $stack->push( $piece );