Add the appropriate newlines from MultiLine::PPI
Sartak [Tue, 6 May 2008 08:05:54 +0000 (08:05 +0000)]
git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@4343 bd8105ee-0ff8-0310-8827-fb3f25b6796d

lib/Devel/REPL/Plugin/MultiLine/PPI.pm

index b7957f0..fba07dd 100644 (file)
@@ -37,7 +37,7 @@ sub continue_reading_if_necessary {
     my $append = $self->read(@args);
     $self->line_depth($self->line_depth - 1);
 
-    $line .= $append if defined($append);
+    $line .= "\n$append" if defined($append);
 
     $self->prompt($orig_prompt);