From 47d52f23ff2426c3397ceef47cdbb998ed18a4e4 Mon Sep 17 00:00:00 2001 From: Curiosidad-Racional Date: Wed, 4 Oct 2017 20:35:32 +0200 Subject: [PATCH] The construct \d for any digit is not supported The construct \d for any digit is not supported, use [0-9] or [:digit:] instead https://www.emacswiki.org/emacs/RegularExpression --- ox-rst.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-rst.el b/ox-rst.el index 3348bfd..d93eccc 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1085,7 +1085,7 @@ contextual information." ;; Protect .. (setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\.. " text)) ;; Protect ^\d+. - (setq text (replace-regexp-in-string "^\\(\\d\\)+\\." "\\1\\." text)) + (setq text (replace-regexp-in-string "^\\([[:digit:]]\\)+\\." "\\1\\." text)) ;; Return value. text)