如何修复 XML 输出中的不匹配标签错误

发布于 2025-01-14 00:03:08 字数 818 浏览 1 评论 0 原文

将 bignum.h 文件处理为 XML(或 HTML)时,标签未正确排序。这会导致 sphinx Breath 解析器出现错误。

/doxygen/xml\dd/da2/bignum_8h.xml: mismatched tag: line 2599, column 172

导致失败的行是:

at most 2<sup>-2*\p rounds</sup>.

生成的 XML 是:

2<superscript>-2*<computeroutput>rounds</superscript></computeroutput>

解决方法是添加空格,如下所示。

at most 2<sup>-2*\p rounds </sup>.

新生成的 HTML 为:

2<superscript>-2*<computeroutput>rounds</computeroutput> </superscript>

该文件的 HTML 的 Doxygen 输出可在此处找到,并且表现出相同的不匹配(但是浏览器可以容忍它)https://tls.mbed.org/api/bignum_8h.html

When processing the bignum.h file to XML (or HTML), the tags are not properly ordered. This causes an error with the sphinx breathe parser.

/doxygen/xml\dd/da2/bignum_8h.xml: mismatched tag: line 2599, column 172

The line causing the failure is:

at most 2<sup>-2*\p rounds</sup>.

Generated XML is:

2<superscript>-2*<computeroutput>rounds</superscript></computeroutput>

The workaround is to add space as seen below.

at most 2<sup>-2*\p rounds </sup>.

Newly generated HTML is:

2<superscript>-2*<computeroutput>rounds</computeroutput> </superscript>

The Doxygen output for HTML for this file is found here and exhibits the same mismatch (however a browser is tolerant of it) https://tls.mbed.org/api/bignum_8h.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文