Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4836
diff.txt
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:09 PM
2014-11-21 22:09:21 (UTC+0)
Size
664 B
Referenced Files
None
Subscribers
None
diff.txt
View Options
Index: Parser.php
===================================================================
--- Parser.php (revision 46444)
+++ Parser.php (working copy)
@@ -4534,7 +4534,8 @@
// Output the replacement text
// Add two newlines on -- trailing whitespace in $newText is conventionally
// stripped by the editor, so we need both newlines to restore the paragraph gap
- $outText .= $newText . "\n\n";
+ // Unless there's no newText (when an editor intends to delete the section)
+ if($newText != "") $outText .= $newText . "\n\n";
while ( $node ) {
$outText .= $frame->expand( $node, PPFrame::RECOVER_ORIG );
$node = $node->getNextSibling();
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4400
Default Alt Text
diff.txt (664 B)
Attached To
Mode
T16938: Section editing: removing sections leaves excess whitespace
Attached
Detach File
Event Timeline
Log In to Comment