lib/table.js
function nodeText (node) {
  return squashWhitespace(node.textContent)

  function squashWhitespace (string) {
    return string.replace(/\s{2,}/g, ' ').trim()
  }
}
function nodeText (node) {
  return squashWhitespace(node.textContent)

  function squashWhitespace (string) {
    return string.replace(/\s{2,}/g, ' ').trim()
  }
}
function nodeText ( node ) { return squashWhitespace ( node . textContent ) function squashWhitespace ( string ) { return string . replace ( / \s{2,} / g , ' ' ) . trim ( ) } }
Squashed and trimmed node text content
Squashed and trimmed node text content