Attempt to fix tests agian.
@@ -73,6 +73,7 @@ def elastic_search(request):
# Change results to turn newlines in highlight into periods
# https://github.com/rtfd/readthedocs.org/issues/5168
for result in results:
+ if hasattr(result.meta.highlight, 'content'):
for num, block in enumerate(result.meta.highlight.content):
new_text = block.replace('\n', '. ')
result.meta.highlight.content[num] = new_text
