Skip to content

Commit

Permalink
Merge pull request ballerina-platform#23173 from shehan360/fix-option…
Browse files Browse the repository at this point in the history
…al-defval-unknown

Fix broken link in HTTP Module
  • Loading branch information
hevayo authored May 12, 2020
2 parents ff039d3 + aa716cb commit 8c81232
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 8c81232

Please sign in to comment.