Commit 332d61f9 authored by Jean-Benoist Leger's avatar Jean-Benoist Leger

cplx expr should be used in all case for ^ and _

parent 5e2c1f02
......@@ -170,19 +170,19 @@ class converter:
def __indexed(self,a,b):
f_sub = transliterate(data.subscript)
bsub,ok = f_sub(b)
if ok:
return a+bsub
if self.__is_complex_expr(a):
a = '('+a+')'
if ok:
return a+bsub
return a+'['+b+']'
def __exponent(self,a,b):
f_sup = transliterate(data.superscript)
bsup,ok = f_sup(b)
if ok:
return a+bsup
if self.__is_complex_expr(a):
a = '('+a+')'
if ok:
return a+bsup
if self.__is_complex_expr(b):
b = '('+b+')'
return a+'^'+b
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment