ehuss / Sublime-Wrap-Plus

Enhanced "wrap lines" command for Sublime Text 2 or 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Javadoc-style comments do not wrap correctly without leading newline

jrk opened this issue · comments

Working in a C++/Doxygen project with the convention that doc comments start immediately after the opening /**:

/** This is a docstring across multiple lines
 * which does _not_ rewrap correctly. */

Wrap Plus does not correctly recognize this as a C-style block comment, so it does not insert * at the start of newly split lines like it does when there is a leading newline:

/**
 * This is a docstring across multiple lines
 * which _does_ rewrap correctly.
 */

Related: when the closing */ is not preceded by a newline, any whitespace before it is lost. /** This */ reflows into /** This*/.