             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

                  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."

                  toRemove.push hl
                else
                  # this range is is at the middle of the node
#                  console.log "Gonna split @ " + range.start + "-" + index + " = " + (range.start - index) + " (len is: " + nextPart.data.length + ")"
                  middlePart = nextPart.splitText range.start - index
                  beforePart = middlePart.previousSibling
#                  console.log "Gonna split @ " + range.end + "-" + range.start + "=" + (range.end - range.start) + " (len is: " + middlePart.data.length + ")"
                  nextPart = middlePart.splitText range.end - range.start
#                  if middlePart.data isnt range.yields
#                    console.log "Middle cut. Wanted: '" + range.yields + "'; got: '" + middlePart.data + "'."
