Skip to content

Commit 0ba301f

Browse files
committed
squash whitespace errors
1 parent cf19699 commit 0ba301f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/utilities.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function printmethod(buffer::IOBuffer, binding::Docs.Binding, func, method::Meth
286286
local args = arguments(method)
287287
local kws = keywords(func, method)
288288
local where_syntax = []
289-
289+
290290
# find inner tuple type
291291
function f(t)
292292
# t is always either a UnionAll which represents a generic type or a Tuple where each parameter is the argument
@@ -335,10 +335,10 @@ function printmethod(buffer::IOBuffer, binding::Docs.Binding, func, method::Meth
335335
break signature up into a nicely formatted multiline method signature.
336336
=#
337337
nl_delim, nl = get_format_delimiters(
338-
args,
338+
args,
339339
kws;
340-
type_info = join([string(get_type_at_i(typesig, i)) for i in eachindex(args)]),
341-
delim=" ",
340+
type_info = join([string(get_type_at_i(typesig, i)) for i in eachindex(args)]),
341+
delim=" ",
342342
break_point=40
343343
)
344344

@@ -547,12 +547,12 @@ new line character. Otherwise, return an empty string, so that the formatting is
547547
unaffected.
548548
"""
549549
function get_format_delimiters(args, kws; delim=" ", break_point=40, type_info = "")
550-
estimated_line_width = length(join(string.(args))) +
550+
estimated_line_width = length(join(string.(args))) +
551551
length(join(string.(kws))) + length(type_info)
552-
552+
553553
nl_delim = estimated_line_width > break_point ? "\n$delim" : ""
554554
nl = estimated_line_width > break_point ? "\n" : ""
555-
555+
556556
return nl_delim, nl
557557
end
558558

@@ -564,11 +564,11 @@ Format the return type to look prettier.
564564
function format_return_type_string(rt; delim = " ", break_point=40)
565565
if startswith(string(rt), "Tuple{") && length(string(rt)) > break_point
566566
string(
567-
"Tuple{\n$delim",
567+
"Tuple{\n$delim",
568568
join([string(x) for x in rt.types],",\n$delim"),
569569
"\n}",
570570
)
571571
else #TODO Unions{...} look ugly, but represent one type, so maybe should be on one line
572572
string(rt)
573573
end
574-
end
574+
end

0 commit comments

Comments
 (0)