Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 10:09 PM
Size
664 B
Referenced Files
None
Subscribers
None

diff.txt

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4400
Default Alt Text
diff.txt (664 B)

Event Timeline