Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8151
parser_change.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:52 PM
2014-11-21 23:52:41 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
parser_change.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7676
Default Alt Text
parser_change.patch (1 KB)
Attached To
Mode
T32384: extra newlines in nested templates in tables [parser difference between 1.17 and 1.18]
Attached
Detach File
Event Timeline
Log In to Comment