Skip to content

Commit 12cfa4b

Browse files
committed
fix extra newline before field description
fixes the bug introduced by JuliaDocs#136
1 parent 0426165 commit 12cfa4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/abbreviations.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function format(abbrv::TypeFields, buf, doc)
9898
for field in fields
9999
print(buf, " - `", field)
100100
abbrv.types && print(buf, "::", fieldtype(object, field))
101-
println(buf, "`")
101+
print(buf, "`")
102102
# Print the field docs if they exist and aren't a `doc"..."` docstring.
103103
if haskey(docs, field) && isa(docs[field], AbstractString)
104104
print(buf, ": ")
@@ -107,6 +107,8 @@ function format(abbrv::TypeFields, buf, doc)
107107
println(buf, indented || isempty(line) ? "" : " ", rstrip(line))
108108
indented = false
109109
end
110+
else
111+
println(buf)
110112
end
111113
println(buf)
112114
end

0 commit comments

Comments
 (0)