dh_sphinxdoc fails to parse search.html generated file without defer="defer" for loading searchindex.js
Hi team,
Reported also in Ubuntu [1].
I was working in a FTBFS in mako package in Ubuntu due to a dh_sphinxdoc error (That it is also happening on Debian [2]).
dh_sphinxdoc: error: debian/python-mako-doc/usr/share/doc/python-mako-doc/html/search.html does not load searchindex.js
I discovered that it was happening since the following commit (dh_sphinxdoc: Support loading searchindex.js with defer="defer"):
So, I focused on checking the regex because it happened when defer is not set in search.html. I think then that a ? quantifier is missing. I got a successful local build of mako after fixing the regex with it.
Therefore, I'm sending the fix for your consideration. Thank you in advance,
Miriam
[1] https://bugs.launchpad.net/sphinx/+bug/2074525 [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076969