Skip to content

Commit

Permalink
[MPIR-425] Verbatim content should be rendered as plain text
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Jan 6, 2023
1 parent 88f2f76 commit dee3a29
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,41 @@ protected void text( String text )
}
}

/* FIXME The next two methods need to be retained until Doxia and Maven Reporting Impl properly implement
* the difference of a (boxed) real verbatim text and (boxed) source code.
*/
/**
* {@inheritDoc}
*/
@Override
protected void verbatimText( String text )
{
sink.verbatim( null );

text( text );

sink.verbatim_();
}

/**
* {@inheritDoc}
*/
@Override
protected void verbatimLink( String text, String href )
{
if ( StringUtils.isEmpty( href ) )
{
verbatimText( text );
}
else
{
sink.verbatim( null );

link( href, text );

sink.verbatim_();
}
}

protected abstract String getI18Nsection();
}

0 comments on commit dee3a29

Please sign in to comment.