Browse Source

Multiplication divided by negated multiplication now also works correctly.

Taddeus Kroes 13 years ago
parent
commit
39cde146f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      line.py

+ 1 - 1
line.py

@@ -248,7 +248,7 @@ def generate_line(root):
 
         if rpred < op_pred:
             rparens = not unary_right \
-                    or (pred(right[0]) < op_pred and len(right[0]) > 1)
+                    or (op == '/' and right[0].title() in '*/')
         elif rpred == op_pred and len(right) > 1:
             if right.title() == op:
                 rparens = not is_right_assoc(op)