[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/org bd0493e: org-lint: Do not require space aft
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/org bd0493e: org-lint: Do not require space after : in keywords |
Date: |
Mon, 4 Oct 2021 02:57:19 -0400 (EDT) |
branch: externals-release/org
commit bd0493eda18c834077a514372aac3fed35fe589a
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
org-lint: Do not require space after : in keywords
* lisp/org-lint.el (org-lint-duplicate-name): Update regexp to conform
with org-element parsers.
Fixes https://list.orgmode.org/orgmode/87h7ee5q8u.fsf@gmail.com/
---
lisp/org-lint.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-lint.el b/lisp/org-lint.el
index 5c64c5a..da5e6ae 100644
--- a/lisp/org-lint.el
+++ b/lisp/org-lint.el
@@ -350,7 +350,7 @@ called with one argument, the key used for comparison."
(lambda (datum name)
(goto-char (org-element-property :begin datum))
(re-search-forward
- (format "^[ \t]*#\\+[A-Za-z]+: +%s *$" (regexp-quote name)))
+ (format "^[ \t]*#\\+[A-Za-z]+:[ \t]*%s[ \t]*$" (regexp-quote name)))
(match-beginning 0))
(lambda (key) (format "Duplicate NAME \"%s\"" key))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals-release/org bd0493e: org-lint: Do not require space after : in keywords,
ELPA Syncer <=