public String optionsToJavadoc ( int padding , int refillWidth ) { StringJoiner b = new StringJoiner ( lineSep ) ; Scanner s = new Scanner ( optionsToHtml ( refillWidth - padding - 2 ) ) ; while ( s . hasNextLine ( ) ) { String line = s . nextLine ( ) ; StringBuilder bb = new StringBuilder ( ) ; bb . append ( StringUtils . repeat ( " " , padding ) ) ; if ( line . trim ( ) . equals ( "" ) ) { bb . append ( "*" ) ; } else { bb . append ( "* " ) . append ( line ) ; } b . add ( bb ) ; } return b . toString ( ) ; }
Get the HTML documentation for the underlying Options instance formatted as a Javadoc comment .