From e1d1d148c1c34a5993eb27d1448ab918ad25e3f1 Mon Sep 17 00:00:00 2001 From: Sunn Yao Date: Sun, 8 Sep 2019 00:16:08 +0800 Subject: [PATCH] lang/plantuml: fix regexp in plantuml--fix-atstart-in-org-src-blocks-a (#1760) * Fix a regexp bug * [:blank:] never match '\n', so add '\n' to regexp --- modules/lang/plantuml/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/plantuml/config.el b/modules/lang/plantuml/config.el index abc0b8091..31d00feeb 100644 --- a/modules/lang/plantuml/config.el +++ b/modules/lang/plantuml/config.el @@ -30,7 +30,7 @@ (let* ((origin-body body) (fix-body (replace-regexp-in-string - "^\\w*\\(@start\\)" + "^[[:blank:]\n]*\\(@start\\)" "\\\\\\1" origin-body))) (list fix-body params))))