       decompose = JetSync.decompose(oldDelta, newDelta)
       compose = JetSync.compose(oldDelta, decompose)
       console.assert(_.isEqual(compose, newDelta), oldDelta, newDelta, decompose, compose)
-      delta = decompose
+      delta = stripNewlineAttributes(decompose)
     else
       fn()
     @ignoreDomChanges = oldIgnoreDomChange

    line.rebuild() if line?

  moveCursor: (userId, index) ->
    if @cursors[userId]
      this.setCursor(userId, index, @cursors[userId].name, @cursors[userId].color)


    index = 0       # Stores where the last retain end was, so if we see another one, we know to delete
    offset = 0      # Tracks how many characters inserted to correctly offset new text
    oldDelta = @doc.toDelta()
    delta = stripNewlineAttributes(delta)
    cursors = {}
    _.each(delta.deltas, (delta) =>
      if JetDelta.isInsert(delta)
