ManimCommunity / ManimCommunity/manim
Table add_highlighted_cell fails if one cell is empty
@AR4152 is already working on this.
Since Oct 17, 2023.
- Dominant language
- Python
- Stars
- 40.9k
- Forks
- 3.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 25
Description
This works (from the documentation):
```py
from manim import *
class TableExamples(Scene):
def construct(self):
t0 = Table(
[["This", "is a"],
["simple", "Table in \n Manim."]]
)
t0.add_highlighted_cell((2,2), color=YELLOW)
self.add(t0)
```
But this doesn't
```py
from manim import *
class TableExamples(Scene):
def construct(self):
t0 = Table(
[["", "is a"],
["simple", "Table in \n Manim."]]
)
t0.add_highlighted_cell((2,2), color=YELLOW)
self.add(t0)
```
It raises the error:
`IndexError: list index out of range`
`Python 3.11.1`. `manim 0.17.3`.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.