Explorar o código

Fixed slight error with mathml regex in summary

Barry Steyn %!s(int64=11) %!d(string=hai) anos
pai
achega
64dca25e86
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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