abrookins / WrapToColumn

An IntelliJ plugin that wraps text
Apache License 2.0
62 stars 12 forks source link

Use single HTML tag as paragraph break for javadoc #27

Closed viliam-durina closed 3 years ago

viliam-durina commented 6 years ago

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 5 years ago

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

abrookins commented 3 years ago

Fixed now!