         element.style[key] = attributes[key] + "px" for key in ["width", "height"] when attributes[key]?
         element
 
-  createNodesForString = (string, position) ->
+  createStringNodesForCurrentRun: ->
+    {string, position} = @currentRun
     nodes = []
 
     for substring, index in string.split("\n")

        nodes.push(node)

    nodes

  preserveSpaces = (string) ->
    string


    if @currentRun.attachment
      innerElement.appendChild(@createAttachmentElementForCurrentRun())
    else if @currentRun.string
      for node in @createStringNodesForCurrentRun()
        innerElement.appendChild(node)

    if parentAttribute
