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

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

[nongnu] elpa/markdown-mode 55dcd7d 4/7: Update markdown-table-align to


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 55dcd7d 4/7: Update markdown-table-align to allow tabs before a delimiter
Date: Fri, 21 May 2021 00:57:12 -0400 (EDT)

branch: elpa/markdown-mode
commit 55dcd7d165b23494a4462fad43ec9666bfabd174
Author: MrChenWithCapsule <Mr.ChenWithCapsule@outlook.com>
Commit: GitHub <noreply@github.com>

    Update markdown-table-align to allow tabs before a delimiter
    
    Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
---
 markdown-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index c32fa3e..aba9e6f 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]*|[ \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]