Page MenuHomePhabricator

parser_change.patch

Authored By
bzimport
Nov 21 2014, 11:52 PM
Size
1 KB
Referenced Files
None
Subscribers
None

parser_change.patch

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 );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7676
Default Alt Text
parser_change.patch (1 KB)

Event Timeline