graphviz-dot-preparser.js 404 B

123456789101112131415
  1. /***************
  2. * Modifies the .parse method of DotParser
  3. * to first preprocess and remove any '\' followed
  4. * by newlines from the text before handing
  5. * it off to DotParser.parse
  6. **/
  7. (function (DotParser) {
  8. originalParse = DotParser.parse;
  9. DotParser.parse = function (src) {
  10. src = src.replace("\\\n","","g");
  11. return originalParse.call(DotParser, src);
  12. }
  13. })(DotParser);