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."
(thread-last
title
(replace-regexp-in-string "\\`(\\(.*?)\\)" "[\\1")
;; See https://lists.gnu.org/archive/html/bug-texinfo/2026-03/msg00000.html
(replace-regexp-in-string (rx "@comma" (optional "{}")) "")
(replace-regexp-in-string "[:,.]" "")
(replace-regexp-in-string "[ \t]+" " ")
org-trim))