Преглед изворни кода

Multiplication divided by negated multiplication now also works correctly.

Taddeus Kroes пре 13 година
родитељ
комит
39cde146f9
1 измењених фајлова са 1 додато и 1 уклоњено
  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)