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

boxes_to_rules 中 夹注位于标题末尾时,会去访问 nil 的next #11

Open
walkthetalk opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@walkthetalk
Copy link

boxes_to_rules

如果 n 是 夹注,则 处理完之后, n 已经指向了原来 n 的后继节点,如果其为空,则 下一步 n=n.next 会出错。

因此 n=n.next 需要放到 else 分支中。

可以通过两个紧邻的夹注进行测试 \jiazhu{XXX}\jiazhu{YYY},会发现第二个夹注没有处理,被跳过了。

@Fusyong Fusyong added the bug Something isn't working label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants