We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 024233b + 1b13f87 commit 16446b1Copy full SHA for 16446b1
src/fmtspec.jl
@@ -39,7 +39,7 @@ immutable FormatSpec
39
tsep::Bool # whether to use thousand-separator
40
41
function FormatSpec(typ::Char;
42
- fill::Char=' ',
+ fill::Char=' ',
43
align::Char='\0',
44
sign::Char='-',
45
width::Int=-1,
@@ -168,6 +168,10 @@ _srepr(x) = repr(x)
168
_srepr(x::AbstractString) = x
169
_srepr(x::Char) = string(x)
170
171
+if isdefined(:Enum)
172
+ _srepr(x::Enum) = string(x)
173
+end
174
+
175
function printfmt(io::IO, fs::FormatSpec, x)
176
cls = fs.cls
177
ty = fs.typ
0 commit comments