From b2b7f351e0ae3104d9c0f1a7e402674a55ba18c6 Mon Sep 17 00:00:00 2001 From: Masanao Igarashi Date: Fri, 9 Aug 2019 18:11:59 +0900 Subject: [PATCH] single-armed "if" -> "when" --- ox-rst.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-rst.el b/ox-rst.el index 6f019c3..29e98d4 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -441,7 +441,7 @@ See `org-rst-text-markup-alist' for details." char) (while (string-match "\\`*" text) (setq char (match-string 0 text)) - (if (> (match-beginning 0) 0) + (when (> (match-beginning 0) 0) (setq rtn (concat rtn (substring text 0 (match-beginning 0))))) (setq text (substring text (1+ (match-beginning 0)))) (setq char (concat "\\" char)