Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converting cvs with empty strings to table converts incorrectly #141

Closed
2 of 6 tasks
m-fonseca opened this issue Mar 31, 2021 · 3 comments
Closed
2 of 6 tasks

converting cvs with empty strings to table converts incorrectly #141

m-fonseca opened this issue Mar 31, 2021 · 3 comments
Assignees
Labels
bug:report Something does not work as intended / expected.

Comments

@m-fonseca
Copy link

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 |
  1. Convert the table to cvs and back.

Expected:

Table cells should remain the same.

Actual:

Table cells move around.

Thanks!

@SidOfc SidOfc self-assigned this Apr 1, 2021
@SidOfc SidOfc added the bug:report Something does not work as intended / expected. label Apr 1, 2021
@SidOfc
Copy link
Owner

SidOfc commented Apr 1, 2021

Another nice find, will look into this as well :)

@SidOfc SidOfc closed this as completed in b04a2ef Apr 7, 2021
@SidOfc
Copy link
Owner

SidOfc commented Apr 7, 2021

@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
Copy link
Author

Verified working here. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:report Something does not work as intended / expected.
Projects
None yet
Development

No branches or pull requests

2 participants