Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return markdown from getFunctionComment to temporarily preserve trailing newlines #2888

Merged

Conversation

sparr
Copy link
Contributor

@sparr sparr commented Oct 6, 2024

FIXES #2887

Thanks to @tomlau10 for this idea.

I've tested in a few scenarios and the results are promising. @see is still appended without a newline if there's comment content above it and no params to separate them in the rendered output, but an explicit empty comment line above it will force it onto its own new line. Making it always on a new line may be preferable, but that would be a bigger change.

@sparr sparr force-pushed the dont_strip_function_comment_trailing_newlines branch from 8c32d8f to 8a874ed Compare October 7, 2024 00:27
@sumneko sumneko merged commit 2550ffd into LuaLS:master Oct 9, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@see annotation does not honor prior blank lines as newlines
2 participants