       .indent-8 { margin-left: 16em; }
       .indent-9 { margin-left: 18em; }
       
-      .tab { display: inline-block; margin: 0px; white-space: pre; }
+      .tab { display: inline-block; margin: 0px; }
     "
     if style.styleSheet?
       style.styleSheet.cssText = css


  constructor: (@container, enabled = true) ->
    @container = document.getElementById(@container) if _.isString(@container)
    this.reset()
    this.enable() if enabled

  reset: (keepHTML = false) ->
    @ignoreDomChanges = true
    @iframe = this.createIframe(@container)
    @doc = new Tandem.Document(this, @iframe.contentWindow.document.getElementById(TandemEditor.CONTAINER_ID))
    @currentSelection = null
    @keyboard = new Tandem.Keyboard(this)

    @ignoreDomChanges = false
    TandemEditor.editors.push(this)

  createIframe: (parent, keepHTML) ->
    html = parent.innerHTML
    parent.innerHTML = ''
    iframe = document.createElement('iframe')
