make additional line break at end of imported doc

This commit is contained in:
John McLear 2014-11-26 15:19:22 +00:00
parent 8851b8ab6b
commit 0a84379364
3 changed files with 7 additions and 3 deletions

View file

@ -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);