Procházet zdrojové kódy

ox-texinfo: Fix colons removal in menu entries

* lisp/ox-texinfo.el (org-texinfo--format-entries): Fix regexp
matching unwanted colons.

Reported-by: Ramesh Nedunchezian <rameshnedunchezian@outlook.com>
<http://lists.gnu.org/r/emacs-orgmode/2021-04/msg00008.html>
Nicolas Goaziou před 4 roky
rodič
revize
f7e0e17e82
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lisp/ox-texinfo.el

+ 1 - 1
lisp/ox-texinfo.el

@@ -1192,7 +1192,7 @@ a plist containing contextual information."
 	      ;; Colons are used as a separator between title and node
 	      ;; name.  Remove them.
 	      (replace-regexp-in-string
-	       "[ \t]+:+" ""
+	       "[ \t]*:+" ""
 	       (org-texinfo--sanitize-title
 		(org-export-get-alt-title h info) info)))
 	     (node (org-texinfo--get-node h info))