diff --git a/src/latexoperation.jl b/src/latexoperation.jl index 0f50f01c..79d58e0e 100644 --- a/src/latexoperation.jl +++ b/src/latexoperation.jl @@ -211,7 +211,7 @@ function latexoperation(ex::Expr, prevOp::AbstractArray; kwargs...)::String ## Use the last expression in a block. ## This is somewhat shady but it helps with latexifying functions. - ex.head == :block && return args[end] + ex.head == :block && return args ## Sort out type annotations. Mainly for function arguments. ex.head == :(::) && length(args) == 1 && return "::$(args[1])"