hosseinmd/prettier-plugin-jsdoc

Allow to breaking a line by using '\' or double spaces

Closed this issue · 2 comments

For example, the bellow jsDoc,

/**
 * A short description,  
 * A long description.
 */

becomes to

/**
 * A short description, A long description.
 */

Even using '\', it also will be trimmed.
In my opinion, should keep it if the parser can recognize it.

I think it could be fixed by adding a new branch for the 'break' type at

return stringyfy(ast, intention, mdAst);

Or it's better to make each type be configurable rather than write a big function with many branches.

You could add dash for your case.

/**
 * - A short description,  
 * - A long description.
 */

i will support '\' as soon as possible