From e746d9cc35cb03c03c61101d2b11f8247e6dcc82 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Fri, 12 Apr 2024 09:05:38 +0200 Subject: [PATCH] [MPLUGIN-517] GoalRenderer renderParameterDetails() renders in wrong order This closes #277 --- .../org/apache/maven/plugin/plugin/report/GoalRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java b/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java index 62d38c15..71a62f10 100644 --- a/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java +++ b/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java @@ -296,11 +296,11 @@ private void renderParameterDetails(Iterator parameters) { while (parameters.hasNext()) { Parameter parameter = parameters.next(); // deprecated anchor for backwards-compatibility with XDoc (upper and lower case) - // TODO: remove once migrated to Doxia 2.x + // TODO: replace once migrated to Doxia 2.x with two-arg startSection(String, String) method sink.anchor(parameter.getName()); + sink.anchor_(); startSection(format("parameter.name", parameter.getName())); - sink.anchor_(); String context = "Parameter " + parameter.getName() + " in goal " + descriptor.getGoal(); renderDeprecatedParameterDescription(parameter.getDeprecated(), context); sink.division();