Skip to content

Javadoc tables not rendering properly when following a <br/> tag #1209

@xels034

Description

@xels034

Tables aren't correctly displayed when following a <br/> tag. This only happens when they are used after the description block (inside the description of @param, @return, etc.)

Environment
  • Operating System: Windows 10
  • JDK version: 13.0.1
  • Visual Studio Code version: 1.41.0
  • Java extension version: 0.54.2
Steps To Reproduce
  1. The code below generates Javadoc that shows the issue:
    /**
     * Tables work as expected here: <br/><table><tr><td>One</td><td>Two</td></tr></table>
     * @param param Tables broken here:<br/><table><tr><td>One</td><td>Two</td></tr></table>
     * @return without a line break it's fine: <table><tr><td>One</td><td>Two</td></tr></table>
     * @see this one's broken too: <br/> <table><tr><td>One</td><td>Two</td></tr></table>
     */
    public Object method(Object param){
      return null;
    }
Current Result

image

For some libraries that can turn really ugly:
image

Expected Result

Removing the <br/> tag before the tables fixes the display again:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions