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

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

[nongnu] elpa/markdown-mode 4af8d20 6/7: Add a test for delimiters with


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 4af8d20 6/7: Add a test for delimiters with surrounding tabs
Date: Fri, 21 May 2021 00:57:12 -0400 (EDT)

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

    Add a test for delimiters with surrounding tabs
---
 tests/markdown-test.el | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index b9afe29..a597d76 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -6918,6 +6918,21 @@ title: asdasdasd
 | aaa | bbbb | ccccc | dddddd |
 "))))
 
+(ert-deftest test-markdown-table/align-with-tabs-before-delimiter ()
+  "Test table realignment when there are tabs before a delimiter"
+  (markdown-test-string "
+| A | B | C | D |
+|      -       |       :-|:-:  |-:|
+| aaa | bbbb | ccccc | dddddd |
+"
+    (search-forward "A")
+    (markdown-table-align)
+    (should (string= (buffer-string) "
+| A   | B    | C     |      D |
+|-----|:-----|:-----:|-------:|
+| aaa | bbbb | ccccc | dddddd |
+"))))
+
 (provide 'markdown-test)
 
 ;;; markdown-test.el ends here



reply via email to

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