Bläddra i källkod

Fixed slight error with mathml regex in summary

Barry Steyn 11 år sedan
förälder
incheckning
64dca25e86
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      latex/latex.py

+ 1 - 1
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'</%s>' % _WRAP_TAG if not _WRAP_TAG is None else ''
-    latex_summary_regex = r'((\$\$|\$|\\begin\{(.+?)\}|<(math)(\s.*?)?>).+?)(\2|\\end\{\3\}|\s?\.\.\.)(%s|</\4>)?' % tag_end
+    latex_summary_regex = r'((\$\$|\$|\\begin\{(.+?)\}|<(math)(\s.*?)?>).+?)(\2|\\end\{\3\}|</\4>|\s?\.\.\.)(%s|</\4>)?' % tag_end
 
     # NOTE: The logic in _get_summary will handle <math> correctly because it
     # is perceived as an html tag. Therefore we are only interested in handling non mml