Function: org-texinfo--sanitize-node
org-texinfo--sanitize-node is a byte-compiled function defined in
ox-texinfo.el.gz.
Signature
(org-texinfo--sanitize-node TITLE)
Documentation
Bend string TITLE to node line requirements.
Trim string and collapse multiple whitespace characters as they are not significant. Replace leading left parenthesis, when followed by a right parenthesis, with a square bracket. Remove periods, commas and colons.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
(defun org-texinfo--sanitize-node (title)
"Bend string TITLE to node line requirements.
Trim string and collapse multiple whitespace characters as they
are not significant. Replace leading left parenthesis, when
followed by a right parenthesis, with a square bracket. Remove
periods, commas and colons."
(org-trim
(replace-regexp-in-string
"[ \t]+" " "
(replace-regexp-in-string
"[:,.]" ""
(replace-regexp-in-string "\\`(\\(.*?)\\)" "[\\1" title)))))