branch: externals-release/org
commit f7e0e17e828595324f5e3e6a319e51328a197f97
Author: Nicolas Goaziou <m...@nicolasgoaziou.fr>
Commit: Nicolas Goaziou <m...@nicolasgoaziou.fr>

    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 <rameshnedunchez...@outlook.com>
    <http://lists.gnu.org/r/emacs-orgmode/2021-04/msg00008.html>
---
 lisp/ox-texinfo.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index cf08054..fbf966e 100644
--- a/lisp/ox-texinfo.el
+++ b/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))

Reply via email to