abrookins/WrapToColumn

Use single HTML tag as paragraph break for javadoc

Closed this issue · 2 comments

We use this style of javadoc comments:

/**
 * Paragraph1.
 * <p>
 * Paragraph2.
 */

Reformatting this gives us:

/**
 * Paragraph1. <p> Paragraph2.
 */

It would be nice if sole <p> (or more generally sole HTML tag or tags) will be treated as paragraph break. This style is also used in JDK (see java.lang.String, for example).

omega commented

perhaps semi-related, it would be nice if "Wrap paragraph" worked better for HTML, only wrapping the current element you're in, not needing blank lines above and below

Fixed now!