-
Notifications
You must be signed in to change notification settings - Fork 263
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
Clean html tags from code completion list #391
Comments
Yes, this is pretty easy to do. I wasn’t aware it was going to display like that — I was expecting the HTML to be interpreted. Maybe I just need to add ““ at the front... |
Still an issue. @Azhrei do you still plan to work on this? |
Not any time soon. The string being displayed there is the string used as the “tooltip” that shows the entire wiki page. If all HTML tags are removed, the wiki page content will then be unformatted. 😕 There may be a way to create a second string via the API but I didn’t see one when I looked. if someone else wants to take a crack at it, they definitely should. If it turns out that the properties file needs a new field, I can tweak the Python scripts that generate it. |
@Azhrei I was looking into this; I can see that in MapToolScriptAutoComplete we create If that's the case, feel free to assign the issue to me, I have some code for this (even though I am struggling at writing some tests for it, TBH). |
I'm assigning this one to you, then. In an ideal world, you'd do the stripping once and cache it somewhere (which is why I suggested we could rebuild the properties file with an additional key rather than do the work at runtime). Can the popup list simply be displayed as HTML instead of plain text? That would solve the problem and the formatting in the short description would be visible... |
I gave a try in the above PR; unfortunately, I didn't find any way to use HTML in the summary, so I had to go for the strip/cache approach. |
Is your feature request related to a problem? Please describe.
The list of code complete suggestions are not that big, it should scrub the html tags from the text that is shown.
Reserve the html for the actual description popup.
This would make it easier in some cases to see the text in the list of suggestions.
Describe the solution you'd like
No html tags in the suggestions list.
The text was updated successfully, but these errors were encountered: