From 64dca25e86aac21eec593574231f8be9447a13a2 Mon Sep 17 00:00:00 2001 From: Barry Steyn Date: Wed, 19 Feb 2014 10:19:49 -0800 Subject: [PATCH] Fixed slight error with mathml regex in summary --- latex/latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latex/latex.py b/latex/latex.py index f0570be..930e686 100644 --- a/latex/latex.py +++ b/latex/latex.py @@ -330,7 +330,7 @@ def pelican_init(pelicanobj): # regular expressions that depend on _WRAP_TAG are set here tag_start= r'<%s>' % _WRAP_TAG if not _WRAP_TAG is None else '' tag_end = r'' % _WRAP_TAG if not _WRAP_TAG is None else '' - latex_summary_regex = r'((\$\$|\$|\\begin\{(.+?)\}|<(math)(\s.*?)?>).+?)(\2|\\end\{\3\}|\s?\.\.\.)(%s|)?' % tag_end + latex_summary_regex = r'((\$\$|\$|\\begin\{(.+?)\}|<(math)(\s.*?)?>).+?)(\2|\\end\{\3\}||\s?\.\.\.)(%s|)?' % tag_end # NOTE: The logic in _get_summary will handle correctly because it # is perceived as an html tag. Therefore we are only interested in handling non mml