[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fixing the automatic generation of Tex info node names
From: |
Philip Kaludercic |
Subject: |
Fixing the automatic generation of Tex info node names |
Date: |
Tue, 19 Apr 2022 10:35:26 +0000 |
For some reason ox-texinfo removes periods from node names. It seems
this is not necessary as info can render these files without any issues,
and in certain cases not intended (e.g. I had a node named "Emacs 28.1"
and it was abbreviated to "Emacs 281").
This patch should resolve the issue:
>From f9a8d9738cb118939a8307bf13f63ec5950bd59b Mon Sep 17 00:00:00 2001
From: Philip Kaludercic <philipk@posteo.net>
Date: Tue, 19 Apr 2022 12:17:40 +0200
Subject: [PATCH] ox-texinfo: Allow for periods in node names
* ox-texinfo.el (org-texinfo--sanitize-node): Don't remove periods
from node names.
---
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 a01bb268c..3a2c4791b 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -555,7 +555,7 @@ periods, commas and colons."
(replace-regexp-in-string
"[ \t]+" " "
(replace-regexp-in-string
- "[:,.]" ""
+ "[:,]" ""
(replace-regexp-in-string "\\`(\\(.*?)\\)" "[\\1" title)))))
(defun org-texinfo--sanitize-title (title info)
--
2.30.2
--
Philip Kaludercic
- Fixing the automatic generation of Tex info node names,
Philip Kaludercic <=