Fix for issue #758
Merge pull request #904 from jpapon/sphinx_math_fix

Fix for issue #758