Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfix to setHTML - it was ignoring the last letter of each line. fix…

…es issue #768
  • Loading branch information...
commit b118903f4e76d9ee086f44a59601e9d71c264fa6 1 parent 2f8aa26
Jordan Hollinger jhollinger authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/node/utils/ImportHtml.js
3  src/node/utils/ImportHtml.js
View
@@ -20,7 +20,6 @@ var log4js = require('log4js');
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var contentcollector = require("ep_etherpad-lite/static/js/contentcollector");
-var map = require("ep_etherpad-lite/static/js/ace2_common").map;
function setPadHTML(pad, html, callback)
{
@@ -60,7 +59,7 @@ function setPadHTML(pad, html, callback)
var attribsIter = Changeset.opIterator(attribs);
var textIndex = 0;
var newTextStart = 0;
- var newTextEnd = newText.length - 1;
+ var newTextEnd = newText.length;
while (attribsIter.hasNext())
{
var op = attribsIter.next();
Please sign in to comment.
Something went wrong with that request. Please try again.