Skip to content

Commit

Permalink
Bug fix: javascript error on empty vec(). Fixes #130
Browse files Browse the repository at this point in the history
  • Loading branch information
drlippman committed Jul 12, 2021
1 parent c70e249 commit 36b3cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ASCIIMathML.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ function AMparseSexpr(str) { //parses str and returns [node,tailstr]
(result[0].nodeName=="mrow" && result[0].childNodes.length==1
&& result[0].firstChild.firstChild.nodeValue !== null
&& result[0].firstChild.firstChild.nodeValue.length==1) ||
(result[0].firstChild.nodeValue !== null
(result[0].firstChild && result[0].firstChild.nodeValue !== null
&& result[0].firstChild.nodeValue.length==1) )) {
accnode.setAttribute("stretchy",false);
}
Expand Down

0 comments on commit 36b3cb0

Please sign in to comment.