From 38e80f7682d8ff6188ad1f7f5fbf3e6308347ef5 Mon Sep 17 00:00:00 2001 From: Martin Donk Date: Tue, 17 Mar 2020 11:02:04 -0500 Subject: [PATCH] Fix double placement of * due to implicit multiplication Fix issue #531 --- nerdamer.core.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nerdamer.core.js b/nerdamer.core.js index 0fc82e1c..e2d3d36b 100644 --- a/nerdamer.core.js +++ b/nerdamer.core.js @@ -6132,8 +6132,9 @@ var nerdamer = (function (imports) { //assume multiplication if it's not an operator except for minus var is_operator = nxt in operators; - if((is_operator && operators[nxt].value === MINUS) || !is_operator) + if((is_operator && operators[nxt].value === MINUS) || !is_operator) { target.push(new Token(MULT, Token.OPERATOR, col)); + } } has_space = false; //remove the space } @@ -10006,7 +10007,7 @@ var nerdamer = (function (imports) { var retval = ''; var tokens = this.filterTokens(raw_tokens); var replace = { - 'cdot': '*', + 'cdot': '', 'times': '*', 'infty': 'Infinity' }; @@ -11671,5 +11672,4 @@ var nerdamer = (function (imports) { if ((typeof module) !== 'undefined') { module.exports = nerdamer; -}; - +}; \ No newline at end of file