Skip to content

Commit

Permalink
[MPLUGIN-471] Generated table by PluginXdocGenerator does not contain…
Browse files Browse the repository at this point in the history
… default attributes
  • Loading branch information
michael-o committed May 12, 2023
1 parent ca911b2 commit 63a14f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,15 @@ public PluginXdocGenerator(MavenProject project) {

/**
* @param project not null.
* @param locale not null wanted locale.
* @param locale not null.
*/
public PluginXdocGenerator(
MavenProject project,
Locale locale,
File reportOutputDirectory,
boolean disableInternalJavadocLinkValidation) {
this.project = project;
if (locale == null) {
this.locale = Locale.ENGLISH;
} else {
this.locale = locale;
}
this.locale = locale;
this.reportOutputDirectory = reportOutputDirectory;
this.disableInternalJavadocLinkValidation = disableInternalJavadocLinkValidation;
}
Expand Down Expand Up @@ -446,7 +442,6 @@ private void writeParameterDetails(List<Parameter> parameterList, XMLWriter w, S

w.startElement("div");
if (StringUtils.isNotEmpty(parameter.getDescription())) {

w.writeMarkup(getXhtmlWithValidatedLinks(parameter.getDescription(), context));
} else {
w.writeMarkup(getString("pluginxdoc.nodescription"));
Expand Down Expand Up @@ -631,6 +626,7 @@ private void writeParameterList(String title, List<Parameter> parameterList, XML

w.startElement("table");
w.addAttribute("border", "0");
w.addAttribute("class", "bodyTable");

w.startElement("tr");
w.startElement("th");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</li>
</ul>
<subsection name="Required Parameters">
<table border="0">
<table border="0" class="bodyTable">
<tr>
<th>Name</th>
<th>Type</th>
Expand Down Expand Up @@ -81,7 +81,7 @@
</table>
</subsection>
<subsection name="Optional Parameters">
<table border="0">
<table border="0" class="bodyTable">
<tr>
<th>Name</th>
<th>Type</th>
Expand Down

0 comments on commit 63a14f7

Please sign in to comment.