Skip to content

[MRG] MNT Adds filters to jinja template #16133

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

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

thomasjpfan
Copy link
Member

Adds tag stripping to jinja template

@thomasjpfan thomasjpfan added this to the 0.22.2 milestone Jan 15, 2020
@NicolasHug
Copy link
Member

what issue is this addressing?

@thomasjpfan
Copy link
Member Author

When building the docs in sphinx 2.3.1 there was a formatting issue cased by not escaping html characters. This type of link is escaped in the links surrounding the one in the PR:

<a href="{{ prev.link|e }}" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="{{ prev.title|striptags }}">Prev</a>

<a href="{{ parents[-1].link }}" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="{{ parents[-1].title }}">Up</a>

@thomasjpfan
Copy link
Member Author

For example:
Screen Shot 2020-01-17 at 11 53 48 AM

@glemaitre
Copy link
Member

It is weird. I don't see the error on stable. Is related to the browser as well?

@thomasjpfan
Copy link
Member Author

It is weird. I don't see the error on stable. Is related to the browser as well?

I see it on all browers.

It only happens on some menus when the html is not correctly escaped and only on newer versions of sphinx (2.3.1). For example, it appears on RidgeCV.

@thomasjpfan thomasjpfan removed this from the 0.22.2 milestone Jan 22, 2020
Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't hurt in any case.

@jnothman jnothman merged commit b8768a0 into scikit-learn:master Feb 5, 2020
thomasjpfan added a commit to thomasjpfan/scikit-learn that referenced this pull request Feb 22, 2020
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
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.

5 participants