             for range in ranges
               do (range) =>
                 if range.start is 0
-                  # This is the first range, and it starts at the start of the node      
+                  # This is the first range, and it starts at the start of the node
                   nextPart = nextPart.splitText range.end
                   firstPart = nextPart.previousSibling
 #                  if firstPart.data isnt range.yields

            lastRange.end = range.end
#            console.log "Should have appended the yield value, too: '" + lastRange.yields + "'."
        else
          # no previous range, or it's too far off
          united.push lastRange =
            start: range.start
            end: range.end
            yields: range.yields
    united


                  lastPart = nextPart.splitText range.start - index
                  nextPart = null
                  remainingPart = lastPart.previousSibling
 #                 if lastPart.data isnt range.yields
#                    console.log "End cut. Wanted: '" + range.yields + "'; got: '" + lastPart.data + "'."
#                  else
#                    console.log "Done end cut."
