Fixes formatting

This commit is contained in:
morris25 2018-11-05 16:11:23 -06:00
parent 9f47d403f7
commit dced413b49
2 changed files with 2 additions and 5 deletions

View File

@ -46,7 +46,7 @@ function gen_plugin(p::Documenter, t::Template, pkg_name::AbstractString)
"[]"
end
kwargs_string = if in(:additional_kwargs, fieldnames(typeof(p))) &&
kwargs_string = if :additional_kwargs in fieldnames(typeof(p)) &&
fieldtype(typeof(p), :additional_kwargs) <: Union{AbstractDict, NamedTuple}
# We want something that looks like the following:
# key1="val1",

View File

@ -408,10 +408,7 @@ end
pkg_dir = joinpath(t.dir, test_pkg)
function check_kwargs(kwargs, warn_str)
p = Qux(
[],
kwargs
)
p = Qux([], kwargs)
@test_logs (:warn, warn_str) gen_plugin(p, t, test_pkg)
make = readchomp(joinpath(pkg_dir, "docs", "make.jl"))