]> matita.cs.unibo.it Git - helm.git/commitdiff
Matitaweb: Fixes a bug which prevented Mozilla from displaying long goals
authorWilmer Ricciotti <ricciott@cs.unibo.it>
Fri, 23 Mar 2012 10:11:15 +0000 (10:11 +0000)
committerWilmer Ricciotti <ricciott@cs.unibo.it>
Fri, 23 Mar 2012 10:11:15 +0000 (10:11 +0000)
correctly.

matitaB/matita/html/matitaweb.js

index cec0bb3baa9d7a4ea6feb1dbd7ab35a5c30206ab..20d0fec43dbcf9557da473af7fae857413b3d60e 100644 (file)
@@ -420,8 +420,9 @@ function populate_goalarray(menv)
       var tmp_goallist = "";
       for (i = 0; i < menv.length; i++) {
         metano = menv[i].getAttribute("number");
-       metaname = menv[i].childNodes[0].childNodes[0].data;
-       goal = menv[i].childNodes[1].childNodes[0].data;
+       // item 0 = <metaname>, item 1 = <goal>
+       metaname = menv[i].childNodes[0].childNodes[0].wholeText;
+       goal = menv[i].childNodes[1].childNodes[0].wholeText;
         debug ("found meta n. " + metano);
         debug ("found goal\nBEGIN" + goal + "\nEND");
         goalarray[metano] = goal;