function indent2(code) {
    return code instanceof SourceNode
      ? code
      : code.replace(/^(.+)$/gm, "  $1");
  }
// These only indent non-empty lines to avoid trailing whitespace.
These only indent non-empty lines to avoid trailing whitespace.
These only indent non - empty lines to avoid trailing whitespace .
function indent2(code) {
    return code instanceof SourceNode
      ? code
      : code.replace(/^(.+)$/gm, "  $1");
  }
function indent2 ( code ) { return code instanceof SourceNode ? code : code . replace ( / ^(.+)$ / gm , "  $1" ) ; }
These only indent non-empty lines to avoid trailing whitespace.
These only indent non - empty lines to avoid trailing whitespace .