Last tag always has \n in the description
Closed this issue · 6 comments
Madd0g commented
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
gyandeeps commented
Madd0g commented
@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.