From 3faa8e2d95196dba1ed01d9a6482a4b4d22660ff Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Tue, 2 Jun 2020 19:35:07 +0900 Subject: [PATCH] make `list_out_formats` return return just data structure --- src/Weave.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Weave.jl b/src/Weave.jl index 02c653a..9cc3c46 100644 --- a/src/Weave.jl +++ b/src/Weave.jl @@ -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...)