syavorsky/comment-parser

Align transformer adding extra spaces on the end of some lines

Closed this issue · 6 comments

I found and issue in the align transformer in some cases.

/**
 * Description may go
 * over multiple lines followed by @tags
 * @param {string} name
 * @param {any} value the value parameter
 */

It's adding 2 spaces after the name, probably to align with the value description. But since we don't have description after the name, we could remove that spaces.

Maybe we could trim the extra spaces from the end of the lines?

I see. Yeah, you are right about the cause. Will have the fix soon.

should be fixed in master now, will publish along with other fixes

fixed in comment-parser@1.1.2

Looks to be working, as I've pushed to master for eslint-plugin-jsdoc a version dropping reliance on a kludge @renatho added to overcome this, and it seems to be working fine. Thanks very much!

Great, glad it works

Thank you, @syavorsky! It seems to be working for me too!
And thank you @brettz9, for update the workaround! =)