Skip to content

Fix rendering a description when it contains escaped chars and no tags #357

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

Conversation

AydinHassan
Copy link
Contributor

Hi!

We are using twig templates in some doc comments (don't ask 🤣) and when lexing the % char is escaped. vsprintf unescapes normally and returns the original content correctly.

But when there are no tags an optimisation is performed which no longer calls vsprintf so the description is returned with the % chars escaped.

To fix I simply call vsprintf on the description always.

@jaapio
Copy link
Member

jaapio commented Mar 12, 2024

Sorry for the delay...

Thanks for addressing this!

@AydinHassan
Copy link
Contributor Author

Nice thanks!

@AydinHassan AydinHassan deleted the fix-description-formatting-with-escaping branch March 12, 2024 22:17
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.

2 participants