Skip to content

Warning during doc generation: warning: unclosed HTML tag K #710

New issue

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

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

Already on GitHub? # to your account

Closed
pellico opened this issue Feb 10, 2023 · 0 comments · Fixed by #711
Closed

Warning during doc generation: warning: unclosed HTML tag K #710

pellico opened this issue Feb 10, 2023 · 0 comments · Fixed by #711

Comments

@pellico
Copy link
Contributor

pellico commented Feb 10, 2023

When generating documentation for generated PAL I get:
warning: unclosed HTML tag K --> src\srss\res_cause2.rs:47:5 | 47 | #[doc = "Bits 0:15 - Clock supervision logic requested a reset due to loss or frequency violation of a high-frequency clock. Each bit index K corresponds to a HFCLK<K>. Unimplemented clock bits return zero."]

The reason is clearly are the angle brackets. Looking at CMSIS specs nothing forbid to use angle brackets. Moreover the generated documentation has bad formatting due to embedded tag.

I expect that svd2rust escapes this kind of characters.

svd2rust version 0.28.0
In attachment one of SVD files that triggers the issue.
cyt2b9.zip

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

Successfully merging a pull request may close this issue.

1 participant