This is a weird one that stumped me when it happened randomly and even more once I tried writing examples that did reproduce the bug or didn't. When the comment is adjusted to no longer cause the issue, rewrap will actually reverse the effect and replace the null characters with spaces. Here's a variety of reproducing javadoc comments.
/** <p>{link Foo} */
/** <p>{ } */
/** <p>{@link} */
/** <p>
* {@link Foo}</p> */
// Yes, an extra line makes the difference on this one!
/** <p></p>
*
* {@link Foo}
*/
You can copy and paste those and run rewrap on the whole file.
This is a weird one that stumped me when it happened randomly and even more once I tried writing examples that did reproduce the bug or didn't. When the comment is adjusted to no longer cause the issue, rewrap will actually reverse the effect and replace the null characters with spaces. Here's a variety of reproducing javadoc comments.
And for comparison, these do not reproduce.
You can copy and paste those and run rewrap on the whole file.
Here's my editor information.
VSCode version info:
Rewrap version: v1.16.3