add: str=str.replace(/\x20+/g," "); str=str.replace(/\s*\r\n/g," "); _43=false; str=str.replace(new RegExp(AMescape2,"g"),function(st){ _43=true; return "AMescape2"; }); str=str.replace(new RegExp(AMescape1,"g"),function(st){ _43=true; return "AMescape1"; }); str=str.replace(new RegExp(AMdelimiter2regexp,"g"),AMdelimiter1); arr=str.split(AMdelimiter1); for(i=0;i<arr.length;i++){ arr[i]=arr[i].replace(/AMescape2/g,AMdelimiter2).replace(/AMescape1/g,AMdelimiter1); } if(arr.length>1||_43){ if(checkForMathML){ checkForMathML=false; var nd=AMisMathMLavailable(); AMnoMathML=nd!=null; if(AMnoMathML&&notifyIfNoMathML){ AMbody.insertBefore(nd,AMbody.childNodes[0]); } } if(!AMnoMathML){ frg=AMstrarr2docFrag(arr,n.nodeType==8); var len=frg.childNodes.length; n.parentNode.replaceChild(frg,n); return len-1; }else{ return 0; } } } }else{ return 0; } }else{ if(n.nodeName!="math"){ for(i=0;i<n.childNodes.length;i++){ i+=AMprocessNodeR(n.childNodes[i],_42); } } } return 0; } 
context: function AMprocessNodeR(n, linebreaks) {  var mtch, str, arr, frg, i;  if (n.childNodes.length == 0) {   if ((n.nodeType!=8 || linebreaks) &&    n.parentNode.nodeName!="form" && n.parentNode.nodeName!="FORM" &&    n.parentNode.nodeName!="textarea" && n.parentNode.nodeName!="TEXTAREA" &&    n.parentNode.nodeName!="pre" && n.parentNode.nodeName!="PRE") {    str = n.nodeValue;    if (!(str == null)) {      str = str.replace(/\r\n\r\n/g,"\n\n");      if (doubleblankmathdelimiter) {        str = str.replace(/\x20\x20\./g," "+AMdelimiter1+".");        str = str.replace(/\x20\x20,/g," "+AMdelimiter1+",");        str = str.replace(/\x20\x20/g," "+AMdelimiter1+" ");      }      str = str.replace(/\x20+/g," ");      str = str.replace(/\s*\r\n/g," ");      mtch = false;      str = str.replace(new RegExp(AMescape2, "g"),              function(st){mtch=true;return "AMescape2"});      str = str.replace(new RegExp(AMescape1, "g"),              function(st){mtch=true;return "AMescape1"});      str = str.replace(new RegExp(AMdelimiter2regexp, "g"),AMdelimiter1);      arr = str.split(AMdelimiter1);      for (i=0; i<arr.length; i++)        arr[i]=arr[i].replace(/AMescape2/g,AMdelimiter2).                      replace(/AMescape1/g,AMdelimiter1);      if (arr.length>1 || mtch) {        if (checkForMathML) {          checkForMathML = false;          var nd = AMisMathMLavailable();          AMnoMathML = nd != null          if (AMnoMathML && notifyIfNoMathML)             AMbody.insertBefore(nd,AMbody.childNodes[0]);        }        if (!AMnoMathML) {          frg = AMstrarr2docFrag(arr,n.nodeType==8);          var len = frg.childNodes.length;          n.parentNode.replaceChild(frg,n);          return len-1;        } else return 0;      }    }   } else return 0;  } else if (n.nodeName!="math") {    for (i=0; i<n.childNodes.length; i++)      i += AMprocessNodeR(n.childNodes[i], linebreaks);  }  return 0;}
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/ASCIIMathML.js/clean/packages/acs-templating/www/resources/xinha-nightly/plugins/Equation/ASCIIMathML.js