summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--template/en/default/attachment/edit.html.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index ffa53493d..90ce7ce84 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -79,7 +79,8 @@
// Copy the contents of the diff into the textarea
var editFrame = document.getElementById('editFrame');
- editFrame.value = theContent + "\n\n";
+ if (editFrame.value.test(/^\s*$/m))
+ editFrame.value = theContent + "\n\n";
has_edited = 1;
}