JuliaLang/julia

Bug in HTML output of method tables

Open

#5,239 创建于 2013年12月27日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)Julia (48,709 star) (5,773 fork)batch import
display and printinghelp wanted

描述

It looks like < and > aren't being escaped properly in writemime(::IO, ::MIME("text/html"), ::MethodTable):

From IJulia qtconsole:

methods(ndims)
Out[11]: 
6 methods for generic function ndims:
ndims(x::Number) at number.jl:10
ndims{T(::Type{T) at number.jl:11
ndims{T,N}(s::SubArray{T,N,A) at subarray.jl:180
ndims{T,n}(::AbstractArray{T,n}) at abstractarray.jl:19
ndims{T,n}(::Type{AbstractArray{T,n}}) at abstractarray.jl:20
ndims{T(::Type{T) at abstractarray.jl:21 

From the terminal:

julia> methods(ndims)
#6 methods for generic function "ndims":
ndims(x::Number) at number.jl:10
ndims{T<:Number}(::Type{T<:Number}) at number.jl:11
ndims{T,N}(s::SubArray{T,N,A<:AbstractArray{T,N},I<:(Union(Range{Int64},Range1{Int64},Int64)...,)}) at subarray.jl:180
ndims{T,n}(::AbstractArray{T,n}) at abstractarray.jl:19
ndims{T,n}(::Type{AbstractArray{T,n}}) at abstractarray.jl:20
ndims{T<:AbstractArray{T,N}}(::Type{T<:AbstractArray{T,N}}) at abstractarray.jl:21

贡献者指南