]> git.uio.no Git - usit-rt.git/blobdiff - bin/rt
Putting 4.2.0 on top of 4.0.17
[usit-rt.git] / bin / rt
diff --git a/bin/rt b/bin/rt
index a6df962e5ca4261f07d5094f2aa1e565ce3f686c..d5a1161e7dc3e7b13cc54125c75508ab176b7ed1 100755 (executable)
--- a/bin/rt
+++ b/bin/rt
@@ -701,7 +701,9 @@ EDIT:
             # If we submitted a bad form, we'll give the user a chance
             # to correct it and resubmit.
             if ($edit || (!$input && !$cl)) {
-                $text = $r->content;
+                my $content = $r->content . "\n";
+                $content =~ s/^(?!#)/#     /mg;
+                $text = $content . $text;
                 $synerr = 1;
                 goto EDIT;
             }