[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/markdown-mode 244b872 5/7: Add a test for delimiters with
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/markdown-mode 244b872 5/7: Add a test for delimiters with surrounding spaces |
Date: |
Fri, 21 May 2021 00:57:12 -0400 (EDT) |
branch: elpa/markdown-mode
commit 244b872d5c4ec116bd08d2fe02d4083bac4a2c17
Author: Chen Zhenge <Mr.ChenWithCapsule@outlook.com>
Commit: Chen Zhenge <Mr.ChenWithCapsule@outlook.com>
Add a test for delimiters with surrounding spaces
---
tests/markdown-test.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index 2822c85..b9afe29 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -6903,6 +6903,21 @@ title: asdasdasd
| A very very very long cell | |
"))))
+(ert-deftest test-markdown-table/align-with-spaces-before-delimiter ()
+ "Test table realignment when there are spaces 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
- [nongnu] elpa/markdown-mode updated (9977753 -> de365c0), ELPA Syncer, 2021/05/21
- [nongnu] elpa/markdown-mode 904f1cb 3/7: fix test test-markdown-table/align-with-escaped-separator, ELPA Syncer, 2021/05/21
- [nongnu] elpa/markdown-mode 209df37 2/7: Update CHANGES.md, ELPA Syncer, 2021/05/21
- [nongnu] elpa/markdown-mode 55dcd7d 4/7: Update markdown-table-align to allow tabs before a delimiter, ELPA Syncer, 2021/05/21
- [nongnu] elpa/markdown-mode f48b1bf 1/7: Fix delimiter regex in markdown-table-align, ELPA Syncer, 2021/05/21
- [nongnu] elpa/markdown-mode 244b872 5/7: Add a test for delimiters with surrounding spaces,
ELPA Syncer <=
- [nongnu] elpa/markdown-mode de365c0 7/7: Merge pull request #617 from MrChenWithCapsule/master, ELPA Syncer, 2021/05/21
- [nongnu] elpa/markdown-mode 4af8d20 6/7: Add a test for delimiters with surrounding tabs, ELPA Syncer, 2021/05/21