eslint/doctrine

Last tag always has \n in the description

Closed this issue · 6 comments

Hi,

the unwrap: true option fails to strip the last new line before */, so an empty description on the last tag in the comment always becomes '/' (not sure why) and a non-empty description always has a newline at the end.

In my code, I have to do this to remove spaces/newlines from before the end of the comment, before passing the comment to doctrine.

 comment = comment.replace(/[\s\n]*\*\/[\s\n]*$/, '*/');

Thanks

Related #107

@nzakas I think this can be closed too as was related to #107 and that is closed.

@Madd0g what version are you using?

@nzakas - 0.6.4 was the last version I used.

@Madd0g Can you please try 0.7.0?

@gyandeeps - sorry for the delayed reply - I upgraded to 0.7.0, I still see an extra \n in the end of every last tag.