mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-26 18:40:29 +01:00
fix printing of GSymbol: No special (id) symbol
This commit is contained in:
parent
3e4f7a36a2
commit
56b63058e3
@ -10,7 +10,9 @@ export IdSymbol, change_pow
|
|||||||
abstract GSymbol
|
abstract GSymbol
|
||||||
|
|
||||||
function show(io::IO, s::GSymbol)
|
function show(io::IO, s::GSymbol)
|
||||||
if s.pow == 0 || s.pow == 1
|
if s.pow == 0
|
||||||
|
print(io, "(id)")
|
||||||
|
elseif s.pow == 1
|
||||||
print(io, s.gen)
|
print(io, s.gen)
|
||||||
else
|
else
|
||||||
print(io, (s.gen)*"^$(s.pow)")
|
print(io, (s.gen)*"^$(s.pow)")
|
||||||
|
Loading…
Reference in New Issue
Block a user