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

table while 循环造成丢失table 后一行的 node #96

Open
sanyuelanv opened this issue Aug 4, 2020 · 1 comment
Open

table while 循环造成丢失table 后一行的 node #96

sanyuelanv opened this issue Aug 4, 2020 · 1 comment

Comments

@sanyuelanv
Copy link

richtext.js 的 142 行代码

while (tmpNode.type === 'table_tr') {
  tableNode.children.push(getBlockNode(tmpNode));
  tmpNode = parsedData[++i];
}

tmpNode 不再是 table_tr 的时候 ,但是 i 已经 +1 了,导致 不能进入 node.type !== 'table_tr' 的分支。

@TooBug
Copy link
Owner

TooBug commented Aug 5, 2020

PR来一个?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants