Skip to content

Commit dee3a29

Browse files
committed
[MPIR-425] Verbatim content should be rendered as plain text
1 parent 88f2f76 commit dee3a29

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoRenderer.java

+36
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,41 @@ protected void text( String text )
105105
}
106106
}
107107

108+
/* FIXME The next two methods need to be retained until Doxia and Maven Reporting Impl properly implement
109+
* the difference of a (boxed) real verbatim text and (boxed) source code.
110+
*/
111+
/**
112+
* {@inheritDoc}
113+
*/
114+
@Override
115+
protected void verbatimText( String text )
116+
{
117+
sink.verbatim( null );
118+
119+
text( text );
120+
121+
sink.verbatim_();
122+
}
123+
124+
/**
125+
* {@inheritDoc}
126+
*/
127+
@Override
128+
protected void verbatimLink( String text, String href )
129+
{
130+
if ( StringUtils.isEmpty( href ) )
131+
{
132+
verbatimText( text );
133+
}
134+
else
135+
{
136+
sink.verbatim( null );
137+
138+
link( href, text );
139+
140+
sink.verbatim_();
141+
}
142+
}
143+
108144
protected abstract String getI18Nsection();
109145
}

0 commit comments

Comments
 (0)