lib/rdoc/generator/template/sdoc/resources/js/searchdoc.js in sdoc-0.4.0 vs lib/rdoc/generator/template/sdoc/resources/js/searchdoc.js in sdoc-0.4.1

- old
+ new

@@ -248,10 +248,10 @@ html += '<p>'; if (typeof badge != 'undefined') { html += '<span class="badge badge_' + (badge % 6 + 1) + '">' + escapeHTML(this.data.badges[badge] || 'unknown') + '</span>'; } html += hlt(result.namespace) + '</p>'; - if (result.snippet) html += '<p class="snippet">' + escapeHTML(result.snippet) + '</p>'; + if (result.snippet) html += '<p class="snippet">' + escapeHTML(result.snippet.replace(/^<p>/, '')) + '</p>'; li.innerHTML = html; jQuery.data(li, 'path', result.path); return li; }