Skip to content

Commit

Permalink
Merge pull request #361 from JunoLab/avi/list
Browse files Browse the repository at this point in the history
make `list_out_formats` return return just data structure
  • Loading branch information
aviatesk committed Jun 2, 2020
2 parents f1d8838 + 3faa8e2 commit 3e6cda8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Weave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ end
take2string!(io) = String(take!(io))

"""
list_out_formats(io = stdout)
list_out_formats()
List supported output formats
List supported output formats with its description.
"""
list_out_formats(io = stdout) = for (k, v) in FORMATS; println(io, string(k, ": ", v.description)); end
list_out_formats() = [k => v.description for (k,v) in FORMATS]

"""
tangle(source::AbstractString; kwargs...)
Expand Down

0 comments on commit 3e6cda8

Please sign in to comment.