Skip to content

Commit

Permalink
Fix default value in optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Shehan committed May 12, 2020
1 parent dcacc0f commit aa716cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static void writeHtmlDocument(Object object, String packageTemplateName,
Context context = options.context;
String root = getRootPath(context);
String link = root + type.moduleName + "/" + type.category + "/" + name + ".html";
if (type.category.equals("objects")) {
if (type.category.equals("objects") && !name.equals("()")) {
defaultValue = "<span class=\"default\">(default</span> <span class=\"type\">" +
"<a href=\"" + link + "\">" + name + "</a>" + "</span><span class=\"default\">)</span>";
} else {
Expand Down

0 comments on commit aa716cb

Please sign in to comment.