-
Notifications
You must be signed in to change notification settings - Fork 152
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
Whitespace in SVD files is lost #858
Comments
The causer is |
Can it be a configuration option? |
Yes. It was my first thought. |
I think |
Raspberry Pi provide SVD files with descriptions like:
It comes out in the Rust code as:
#[doc = "DW_apb_i2c address block List of configuration constants for the Synopsys I2C hardware (you may see references to these in I2C register header; these are *fixed* values, set at hardware design time): IC_ULTRA_FAST_MODE ....."]
I suspect this is because whitespace in XML is collapsed - any run of whitespace is converted into a single space character.
I tried putting the description in a
<![CDATA[ ]>
block, but a) svdtools removed it and b) even if I force it back it, svd2rust ignores it.How can I try and make sure the whitespace in the description is carried through into the docs? In particular, I want to avoid very very very long single line descriptions appearing in https://docs.rs/rp235x-pac/latest/rp235x_pac/index.html
The text was updated successfully, but these errors were encountered: