diff --git a/docs/Makefile.am b/docs/Makefile.am
index a76e06824d08ba5892591331254d50c857822ce5..c6a3eadc958b626fe8b5af47fd538f64801fd05c 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -235,7 +235,7 @@ internals/%.html.tmp: internals/%.html.in subsite.xsl page.xsl sitemap.html.in
%.php: %.php.tmp %.php.code.in
@if [ -x $(XSLTPROC) ] ; then \
echo "Scripting $@"; \
- sed -e '/<\/a>/r '"$(srcdir)/$@.code.in" \
+ sed -e '/<\/span>/r '"$(srcdir)/$@.code.in" \
-e /php_placeholder/d < $@.tmp > $(srcdir)/$@ \
|| { rm $(srcdir)/$@ && exit 1; }; fi
diff --git a/docs/search.php.in b/docs/search.php.in
index ee8f4a3eda03bdbb8ad3f7312017c6ab23dc6bf5..3e1fea253575dd7647736773e393d681824bc5bd 100644
--- a/docs/search.php.in
+++ b/docs/search.php.in
@@ -1,5 +1,6 @@
-
+
+
Search the documentation on Libvirt.org
@@ -9,7 +10,7 @@
it simply provide a set of keywords: