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.
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.