Skip to content

Commit

Permalink
Fix show of *CharSet types
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Oct 21, 2018
1 parent 0bd0d5a commit d9f0506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
julia 0.6 2-
ModuleInterfaceTools 0.1.6
ModuleInterfaceTools 0.1.7
StrAPI 0.1.8
4 changes: 2 additions & 2 deletions src/charsets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CharSet(s) = CharSet{Symbol(s)}()

# List of basic character sets

show(io::IO, ::Type{CharSet{S}}) where {S} = print(io, "CharSet{:", string(S), "}")
show(io::IO, ::Type{CharSet{S}}) where {S} = print(io, "CharSet{:$S}")

const UniPlusCharSet = CharSet{:UniPlus}
push!(charset_types, UniPlusCharSet)
Expand All @@ -25,7 +25,7 @@ for lst in cse_info
nam = lst[1]
csnam = symstr(nam, "CharSet")
@eval const $csnam = CharSet{$(quotesym(nam))}
@eval show(io::IO, ::Type{$csnam}) = print(IO, $nam, "CharSet")
@eval show(io::IO, ::Type{$csnam}) = print(IO, string(csnam))
@eval push!(charset_types, $csnam)
@eval @api $(String(nam)[1] == '_' ? :develop : :public) $csnam
end
Expand Down

0 comments on commit d9f0506

Please sign in to comment.