summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-04-01 17:10:52 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-04-01 17:10:52 +0200
commitf7e0e17e828595324f5e3e6a319e51328a197f97 (patch)
tree1ff973a24cacbc5463b39fd0a67956ffe2890a5c
parent1c0ce74a1f91360a4daaaed26cb135add5144c34 (diff)
downloadorg-mode-f7e0e17e828595324f5e3e6a319e51328a197f97.tar.gz
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>
-rw-r--r--lisp/ox-texinfo.el2
1 files changed, 1 insertions, 1 deletions
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))