summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node/utils/ImportHtml.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/node/utils/ImportHtml.js b/src/node/utils/ImportHtml.js
index 34e9ad76..59802f9b 100644
--- a/src/node/utils/ImportHtml.js
+++ b/src/node/utils/ImportHtml.js
@@ -24,8 +24,12 @@ function setPadHTML(pad, html, callback)
var apiLogger = log4js.getLogger("ImportHtml");
var $ = cheerio.load(html);
- var doc = $('html')[0];
+ // Appends a line break, used by Etherpad to ensure a caret is available
+ // below the last line of an import
+ $('body').append("<p></p>");
+
+ var doc = $('html')[0];
apiLogger.debug('html:');
apiLogger.debug(html);