From 55dcd7d165b23494a4462fad43ec9666bfabd174 Mon Sep 17 00:00:00 2001 From: MrChenWithCapsule Date: Fri, 21 May 2021 10:44:15 +0800 Subject: [PATCH] Update markdown-table-align to allow tabs before a delimiter Co-authored-by: Shohei YOSHIDA --- 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 -- 2.11.4.GIT