From 905825229cc5362aa135fb05ad97c07af3cea569 Mon Sep 17 00:00:00 2001 From: Igarashi Masanao Date: Thu, 22 Feb 2018 22:00:13 +0900 Subject: [PATCH] Clean up org-rst-plain-text (Fix #37) --- ox-rst.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ox-rst.el b/ox-rst.el index d506903..055ffeb 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1073,9 +1073,7 @@ contextual information." ;; Protect `, *, _ and \ (setq text (replace-regexp-in-string "[`*_\\]" "\\\\\\&" text)) ;; Protect .. - (setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\.. " text)) - ;; Protect ^\d+. - (setq text (replace-regexp-in-string "^\\([[:digit:]]\\)+\\." "\\1\\." text)) + (setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\\\&" text)) ;; Return value. text)