From 0190d0563be718c6be9c678d6149f97414c571ce Mon Sep 17 00:00:00 2001 From: Swell <5782559+sultan@users.noreply.github.com> Date: Thu, 20 Jan 2022 11:08:54 +0100 Subject: [PATCH] [MPIR-405] Regression in Maven site rendering due to Doxia change to HTML5 This closes #29 --- .../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 875a11e0..1681506c 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 @@ private boolean isReactorBuild() 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 ); } /**