mma-server/src/main/resources/com/aliyun/odps/mma/server/ui/static/dag-viz.js
/*
 * Helper function to interpret line break for tag 'tspan'.
 * For tag 'tspan', line break '/n' is display in UI as raw for both stage page and job page,
 * here this function is to enable line break.
 */
Helper function to interpret line break for tag 'tspan'.
For tag 'tspan', line break '/n' is display in UI as raw for both stage page and job page,
here this function is to enable line break.
Helper function to interpret line break for tag ' tspan ' . For tag ' tspan ' line break ' / n ' is display in UI as raw for both stage page and job page here this function is to enable line break .
function interpretLineBreak(svg) {
  var allTSpan = svg.selectAll("tspan").each(function() {
    node = d3.select(this);
    var original = node[0][0].innerHTML;
    if (original.indexOf("\\n") != -1) {
      var arr = original.split("\\n");
      var newNode = this.cloneNode(this);
      node[0][0].innerHTML = arr[0];
      newNode.innerHTML = arr[1];
      this.parentNode.appendChild(newNode);
    }
  });
}
function interpretLineBreak ( svg ) { var allTSpan = svg . selectAll ( "tspan" ) . each ( function ( ) { node = d3 . select ( this ) ; var original = node [ 0 ] [ 0 ] . innerHTML ; if ( original . indexOf ( "\\n" ) != - 1 ) { var arr = original . split ( "\\n" ) ; var newNode = this . cloneNode ( this ) ; node [ 0 ] [ 0 ] . innerHTML = arr [ 0 ] ; newNode . innerHTML = arr [ 1 ] ; this . parentNode . appendChild ( newNode ) ; } } ) ; }
Helper function to interpret line break for tag 'tspan'.
Helper function to interpret line break for tag ' tspan ' .