converting cvs with empty strings to table converts incorrectly
m-fonseca opened this issue · 3 comments
m-fonseca commented
OS type:
- Unix
- Windows
- Other ([SPECIFY])
Vim:
- vim
- neovim
- Other ([SPECIFY])
Vim version:
NVIM v0.4.4
Using mkdx 602a784
Reproduce steps:
Use the following markdown file.
# Test
| myhead | myhead1 | myhead2 | myhead3 | myhead4 | myhead5 |
|--------|---------|---------|---------|---------|---------|
| mytest | | | mytest3 | mytest4 | mytest5 |
| mytest | mytest1 | mytest2 | mytest3 | mytest4 | mytest5 |
- Convert the table to cvs and back.
Expected:
Table cells should remain the same.
Actual:
Table cells move around.
Thanks!
SidOfc commented
Another nice find, will look into this as well :)
SidOfc commented
@m-fonseca this one should also be fixed, here I was using :h filter
which actually modifies the list that's being filtered so All I needed to do is :h copy
the list to make it work properly.
m-fonseca commented
Verified working here. Thanks!