Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5267
Preprocessor.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:24 PM
2014-11-21 22:24:32 (UTC+0)
Size
979 B
Referenced Files
None
Subscribers
None
Preprocessor.diff
View Options
Index: includes/parser/Preprocessor_Hash.php
===================================================================
--- includes/parser/Preprocessor_Hash.php (revision 44770)
+++ includes/parser/Preprocessor_Hash.php (working copy)
@@ -429,7 +429,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: includes/parser/Preprocessor_DOM.php
===================================================================
--- includes/parser/Preprocessor_DOM.php (revision 44770)
+++ includes/parser/Preprocessor_DOM.php (working copy)
@@ -435,7 +435,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
4828
Default Alt Text
Preprocessor.diff (979 B)
Attached To
Mode
T18700: Nesting templates lead to excess whitespace
Attached
Detach File
Event Timeline
Log In to Comment