Skip to content

Commit

Permalink
Modified latexoperation handling directly
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjknox committed Sep 23, 2024
1 parent cd65801 commit 2781e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latexoperation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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])"
Expand Down

0 comments on commit 2781e32

Please sign in to comment.