-
Notifications
You must be signed in to change notification settings - Fork 132
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
Extra <p> tags appear in results snippet #72
Comments
sunaku
added a commit
to sunaku/sdoc
that referenced
this issue
Jul 12, 2014
sunaku
pushed a commit
to sunaku/sdoc
that referenced
this issue
Jul 12, 2014
sunaku
pushed a commit
to sunaku/sdoc
that referenced
this issue
Jul 12, 2014
sunaku
pushed a commit
to sunaku/sdoc
that referenced
this issue
Jul 12, 2014
zzak
pushed a commit
that referenced
this issue
Aug 11, 2014
GH-72: Extra <p> tags appear in results snippet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extracted from a search index created by rdoc (4.1.1)
Those extra p tags appear in the search results (they wouldn't in the past). I tried to look into rdoc why but that gem is quite intricate. The source lines that appear for snippet are treated as RDoc::Markup::Paragraph, I think that's why rdoc add those p tag.
I don't have enough knowledge to fix the source of the problem, but I have a workaround:
In searchdoc.js, change this line (in renderItem):
to
I actually prefer this since the original line escapes the html making presentation tags apparent in the result...
PS: Why aren't those p tags closed by rdoc?
PS2: http://api.rubyonrails.org is also currently showing the bug
The text was updated successfully, but these errors were encountered: