Explorar o código

ox-latex: Fix 309ccd96499a3b4f7ceba8a53994eb0f8b3e2ddd

* lisp/ox-latex.el (org-latex-headline): Fix regexp in commit
  309ccd96499a3b4f7ceba8a53994eb0f8b3e2ddd.
Nicolas Goaziou %!s(int64=12) %!d(string=hai) anos
pai
achega
87c553d268
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/ox-latex.el

+ 1 - 1
lisp/ox-latex.el

@@ -1482,7 +1482,7 @@ holding contextual information."
 			(org-export-data
 			 (org-export-get-optional-title headline info) info)
 			(and (eq (plist-get info :with-tags) t) tags))))
-	  (if (and opt-title (string-match "\\`\\\\\\(.*?\\)[^*]{" section-fmt))
+	  (if (and opt-title (string-match "\\`\\\\\\(.*?[^*]\\){" section-fmt))
 	      (format (replace-match "\\1[%s]" nil nil section-fmt 1)
 		      ;; Replace square brackets with parenthesis
 		      ;; since square brackets are not supported in