import Renderer from './renderer'

class GitLabRenderer extends Renderer {
  renderSwitch() {
  }

  getCodeDOM() {
    return <HTMLElement>document.querySelector('.blob-content code')
  }

  getFontWidth() {
    const $ = <HTMLElement>document.querySelector('#LC1 > span')
    return $.getBoundingClientRect().width / $.innerText.length
  }

  getPadding() {
    return {
      left: 10,
      top: 10
    }
  }
}

const renderer = new GitLabRenderer()

import Renderer from './renderer'

class GitLabRenderer extends Renderer {
  renderSwitch() {
  }

  getCodeDOM() {
    return <HTMLElement>document.querySelector('.blob-content code')
  }

  getCode() {
    const lines = this.$code.children
    return [].map.call(lines, line => line.innerText).join('\n')
  }

  getFontWidth() {
    const $ = <HTMLElement>document.querySelector('#LC1 > span')
    return $.getBoundingClientRect().width / $.innerText.length
  }

  getPadding() {
    return {
      left: 10,
      top: 10
    }
  }
}

const renderer = new GitLabRenderer()

Fix GitLab missing empty line
Fix GitLab missing empty line
