From 2f7d3cf1f69749e2b68ed18d270ee978b20bd8a0 Mon Sep 17 00:00:00 2001 From: Justin Willmert Date: Fri, 12 Jun 2020 01:12:02 -0500 Subject: [PATCH] Lift fallback _trimdocs() to trimdocs() --- stdlib/REPL/src/docview.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/REPL/src/docview.jl b/stdlib/REPL/src/docview.jl index bb4b1dbb5a8365..a1391568ecc829 100644 --- a/stdlib/REPL/src/docview.jl +++ b/stdlib/REPL/src/docview.jl @@ -108,7 +108,9 @@ function Markdown.term(io::IO, msg::Message, columns) printstyled(io, msg.msg; msg.fmt...) end -function trimdocs(md, brief::Bool) +trimdocs(doc, brief::Bool) = doc + +function trimdocs(md::Markdown.MD, brief::Bool) brief || return md md, trimmed = _trimdocs(md, brief) if trimmed