You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/01/27 11:51:41 UTC
[maven-project-info-reports-plugin] branch master updated: [MPIR-405] Regression in Maven site rendering due to Doxia change to HTML5
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-project-info-reports-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 0190d05 [MPIR-405] Regression in Maven site rendering due to Doxia change to HTML5
0190d05 is described below
commit 0190d0563be718c6be9c678d6149f97414c571ce
Author: Swell <57...@users.noreply.github.com>
AuthorDate: Thu Jan 20 11:08:54 2022 +0100
[MPIR-405] Regression in Maven site rendering due to Doxia change to HTML5
This closes #29
---
.../projectinfo/DependencyConvergenceReport.java | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java b/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java
index 875a11e..1681506 100644
--- a/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java
+++ b/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java
@@ -692,22 +692,16 @@ public class DependencyConvergenceReport
private void iconSuccess( Locale locale, Sink sink )
{
- sink.figure();
- sink.figureCaption();
- sink.text( getI18nString( locale, "icon.success" ) );
- sink.figureCaption_();
- sink.figureGraphics( IMG_SUCCESS_URL );
- sink.figure_();
+ SinkEventAttributes attributes =
+ new SinkEventAttributeSet( SinkEventAttributes.ALT, getI18nString( locale, "icon.success" ) );
+ sink.figureGraphics( IMG_SUCCESS_URL, attributes );
}
private void iconError( Locale locale, Sink sink )
{
- sink.figure();
- sink.figureCaption();
- sink.text( getI18nString( locale, "icon.error" ) );
- sink.figureCaption_();
- sink.figureGraphics( IMG_ERROR_URL );
- sink.figure_();
+ SinkEventAttributes attributes =
+ new SinkEventAttributeSet( SinkEventAttributes.ALT, getI18nString( locale, "icon.error" ) );
+ sink.figureGraphics( IMG_ERROR_URL, attributes );
}
/**