LPS-33744 Javadoc formatter to handle nexted pre and table tags

Cody implemented the fix. It's been tested on the code base. Thanks.

@codyhoag