emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode f48b1bf 1/7: Fix delimiter regex in markdown


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode f48b1bf 1/7: Fix delimiter regex in markdown-table-align
Date: Fri, 21 May 2021 00:57:11 -0400 (EDT)

branch: elpa/markdown-mode
commit f48b1bf1c88179df6c3c8017d936a638c07b175b
Author: Chen Zhenge <Mr.ChenWithCapsule@outlook.com>
Commit: Chen Zhenge <Mr.ChenWithCapsule@outlook.com>

    Fix delimiter regex in markdown-table-align
---
 markdown-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index 999df6f..c32fa3e 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -9087,7 +9087,7 @@ This function assumes point is on a table."
             (indent (progn (looking-at "[ \t]*") (match-string 0)))
             ;; Split table in lines and save column format specifier
             (lines (mapcar (lambda (l)
-                             (if (string-match-p "\\`[ \t]*|[-:]" l)
+                             (if (string-match-p "\\`[ \t]*| *[-:]" l)
                                  (progn (setq fmtspec (or fmtspec l)) nil) l))
                            (markdown--split-string (buffer-substring begin 
end) "\n")))
             ;; Split lines in cells



reply via email to

[Prev in Thread] Current Thread [Next in Thread]