From e112f3c0df49264998d4ae8df545c9940692f68f Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 11 Aug 2014 19:47:47 +0200 Subject: [PATCH] ox-texinfo: Fix corner case when fixing a node name * lisp/ox-texinfo.el (org-texinfo--sanitize-node): Handle " (not)allowed" case. --- lisp/ox-texinfo.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index 2084ab02b..e6938971e 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -487,12 +487,11 @@ guarantees the node name is unique." Trim string and collapse multiple whitespace characters as they are not significant. Also remove the following characters: @ { } ( ) : . ," - (org-trim + (replace-regexp-in-string + "[:,.]" "" (replace-regexp-in-string - "[:,.]" "" - (replace-regexp-in-string - "\\`(\\(.*)\\)" "[\\1" - (replace-regexp-in-string "[ \t]\\{2,\\}" " " title))))) + "\\`(\\(.*)\\)" "[\\1" + (org-trim (replace-regexp-in-string "[ \t]\\{2,\\}" " " title))))) ;;;; Content sanitizing -- 2.11.4.GIT